Use safe_load as per PyYAML documentation
This commit is contained in:
Anthony Sottile 2016-10-23 12:54:08 -04:00 committed by GitHub
commit 8e0d7bab60

View file

@ -5,11 +5,10 @@ import sys
import yaml
try:
from yaml.cyaml import CLoader as Loader
from yaml.cyaml import CSafeLoader as Loader
except ImportError: # pragma: no cover (no libyaml-dev / pypy)
Loader = yaml.Loader
Loader = yaml.SafeLoader
def check_yaml(argv=None):