diff --git a/fabtests/scripts/parseyaml.py b/fabtests/scripts/parseyaml.py index 757434a0be1..94b9098a04b 100755 --- a/fabtests/scripts/parseyaml.py +++ b/fabtests/scripts/parseyaml.py @@ -82,7 +82,7 @@ def read(): else: fd = open(args[0], 'r') - yi = yaml.load_all(fd.read()) + yi = yaml.safe_load_all(fd.read()) if options.d: perfprint(difference(yi)) diff --git a/fabtests/scripts/toCSV.py b/fabtests/scripts/toCSV.py index 86073cd21b5..3d92b991849 100755 --- a/fabtests/scripts/toCSV.py +++ b/fabtests/scripts/toCSV.py @@ -23,7 +23,7 @@ def main(argv=None): else: fd = open(args[0], 'r') - yi = yaml.load(fd.read()) + yi = yaml.safe_load(fd.read()) csv_fd = csv.writer(sys.stdout, delimiter=",", quotechar='"', quoting=csv.QUOTE_NONNUMERIC) csv_fd.writerow(["Test name", "Status"])