diff --git a/docs/scenarios/serialization.rst b/docs/scenarios/serialization.rst index 3edc6aaa2..5f10155c3 100644 --- a/docs/scenarios/serialization.rst +++ b/docs/scenarios/serialization.rst @@ -130,7 +130,7 @@ structures in Python. One such example is below. import yaml with open('/tmp/file.yaml', 'r', newline='') as f: try: - print(yaml.load(f)) + print(yaml.full_load(f)) except yaml.YAMLError as ymlexcp: print(ymlexcp)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: