From 790059069915a700905f4746b22a9a4a6cadc6ad Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 2 Feb 2017 09:33:02 +0200 Subject: replace yaml.load with yaml.safe_load in several places Change-Id: I4ba8291acbb56ed3be58ad9bdfa1492892695458 Signed-off-by: Yaroslav Brustinov --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py') diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py index 26613e56..efa450e1 100755 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py @@ -821,7 +821,7 @@ class YAMLLoader(object): yaml_str = f.read() try: - objects = yaml.load(yaml_str) + objects = yaml.safe_load(yaml_str) except yaml.parser.ParserError as e: raise STLError(str(e)) -- cgit 1.2.3-korg