X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fchecks.py;h=f0d19ad54403e3d759079fd279fb661092808456;hb=01ebf813c5f67f5b6e83e055a803784548a78603;hp=14fb02d35628bc0707562cdc4651b49ada5bd72f;hpb=9577d0bfe2d33afc1033f4b571a50fb7c980de6b;p=dak.git diff --git a/daklib/checks.py b/daklib/checks.py index 14fb02d3..f0d19ad5 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -602,7 +602,7 @@ transition is done.""".format(source, currentlymsg, expected,t["rm"]))) contents = file(path, 'r').read() try: - transitions = yaml.load(contents) + transitions = yaml.safe_load(contents) return transitions except yaml.YAMLError as msg: utils.warn('Not checking transitions, the transitions file is broken: {0}'.format(msg)) @@ -643,7 +643,7 @@ class LintianCheck(Check): with open(tagfile, 'r') as sourcefile: sourcecontent = sourcefile.read() try: - lintiantags = yaml.load(sourcecontent)['lintian'] + lintiantags = yaml.safe_load(sourcecontent)['lintian'] except yaml.YAMLError as msg: raise Exception('Could not read lintian tags file {0}, YAML error: {1}'.format(tagfile, msg))