Skip to content

Commit

Permalink
Tools: Update PyYAML version.
Browse files Browse the repository at this point in the history
Fixes #2278.
  • Loading branch information
Ms2ger committed Aug 12, 2019
1 parent 48cee19 commit 6ca9714
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/generation/requirements.txt
@@ -1 +1 @@
PyYAML==3.11
PyYAML==5.1.2
2 changes: 1 addition & 1 deletion tools/lint/lib/checks/harnessfeatures.py
Expand Up @@ -9,7 +9,7 @@ class CheckHarnessFeatures(Check):

def __init__(self):
with open('./harness/features.yml', 'r') as f:
self.include_has_features = yaml.load(f.read())
self.include_has_features = yaml.safe_load(f.read())

def comparison_result_lists(self, meta):

Expand Down
2 changes: 1 addition & 1 deletion tools/lint/lib/frontmatter.py
Expand Up @@ -11,6 +11,6 @@ def parse(src):
return None

try:
return yaml.load(match.group(1))
return yaml.safe_load(match.group(1))
except (yaml.scanner.ScannerError, yaml.parser.ParserError):
return None
2 changes: 1 addition & 1 deletion tools/lint/requirements.txt
@@ -1,2 +1,2 @@
PyYAML==3.11
PyYAML==5.1.2
inflect==0.2.5

0 comments on commit 6ca9714

Please sign in to comment.