We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8a8092 commit 3b7183bCopy full SHA for 3b7183b
src/tests/data-tests/python_yaml_issue_33/gen.py
@@ -35,3 +35,10 @@
35
36
with open("example.yaml", 'w') as f:
37
yaml.dump(a_dict, f, default_flow_style=False, sort_keys=False)
38
+
39
40
+with open("example.yaml") as stream:
41
+ try:
42
+ print(yaml.safe_load(stream))
43
+ except yaml.YAMLError as exc:
44
+ print(exc)
0 commit comments