From 1ddf8445a1ed402b82900f78eb0887e88fbabe15 Mon Sep 17 00:00:00 2001 From: fwdevin <31858633+fwdevin@users.noreply.github.com> Date: Thu, 20 Feb 2020 11:55:51 -0600 Subject: [PATCH] Update yaml.load() to avoid warning --- docs/scenarios/serialization.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy