You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ros/genpy/files/yaml.patch

14 lines
543 B

Index: genpy-0.6.11/test/test_genpy_message.py
===================================================================
--- genpy-0.6.11.orig/test/test_genpy_message.py
+++ genpy-0.6.11/test/test_genpy_message.py
@@ -612,7 +612,7 @@ d: """ + """
def roundtrip(m):
yaml_text = strify_message(m)
print(yaml_text)
- loaded = yaml.load(yaml_text)
+ loaded = yaml.safe_load(yaml_text)
print('loaded', loaded)
new_inst = m.__class__()
if loaded is not None: