aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vint/02-latest-py3-yaml.patch
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2019-05-13 10:15:58 +0100
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-13 10:49:53 +0000
commit4c33316a5795e7fac253aa09d1cedcba5cccb60f (patch)
treed8cb49cf05c63acd201a97f6316588c4df62486c /testing/vint/02-latest-py3-yaml.patch
parent8d2e670c3970316e4fc50a2f42f167427a1e2d63 (diff)
downloadaports-4c33316a5795e7fac253aa09d1cedcba5cccb60f.tar.bz2
aports-4c33316a5795e7fac253aa09d1cedcba5cccb60f.tar.xz
testing/vint: new aport
Closes GH-7859
Diffstat (limited to 'testing/vint/02-latest-py3-yaml.patch')
-rw-r--r--testing/vint/02-latest-py3-yaml.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/vint/02-latest-py3-yaml.patch b/testing/vint/02-latest-py3-yaml.patch
new file mode 100644
index 0000000000..f641d3682a
--- /dev/null
+++ b/testing/vint/02-latest-py3-yaml.patch
@@ -0,0 +1,18 @@
+--- 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):