We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
load
dump
safe_
1 parent 661e4f1 commit 4e0ffecCopy full SHA for 4e0ffec
1 file changed
docs/index.md
@@ -75,7 +75,7 @@ Now let's dump and load it using `pyyaml`:
75
```
76
77
```python
78
->>> print(yaml.load("!yamlable/com.yamlable.example.Foo {a: 0, b: hey}"))
+>>> print(yaml.safe_load("!yamlable/com.yamlable.example.Foo {a: 0, b: hey}"))
79
80
Foo - {'a': 0, 'b': 'hey'}
81
@@ -84,7 +84,7 @@ For more general cases where your object is embedded in a more complex structure
84
85
86
>>> d = {'foo': f, 'foo2': 12}
87
->>> print(yaml.dump(d))
+>>> print(yaml.safe_dump(d))
88
89
foo: !yamlable/com.yamlable.example.Foo {a: 1, b: hello}
90
foo2: 12
0 commit comments