aports/testing/vint/02-latest-py3-yaml.patch
Keith Maxwell 4c33316a57 testing/vint: new aport
Closes GH-7859
2019-05-13 10:49:53 +00:00

19 lines
557 B
Diff

--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
-PyYAML ~= 3.11
+PyYAML
ansicolor ~= 0.2.4
chardet >= 2.3.0
--- a/vint/linting/config/config_file_source.py
+++ b/vint/linting/config/config_file_source.py
@@ -10,7 +10,7 @@
config_file_path = self.get_file_path(env)
with config_file_path.open() as file_obj:
- self._config_dict = self.convert_config_dict(yaml.load(file_obj))
+ self._config_dict = self.convert_config_dict(yaml.full_load(file_obj))
def convert_config_dict(self, yaml_dict):