Use yaml.safe_load instead of yaml.load

http://pyyaml.org/wiki/PyYAMLDocumentation#LoadingYAML

Signed-off-by: Richard Morrison <richard@rmorrison.net>
This commit is contained in:
Richard Morrison 2014-07-10 14:57:54 +01:00
parent 2924b9997a
commit 251aa7efb6
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class Command(DocoptCommand):
yaml_path = self.yaml_path
if yaml_path is None:
yaml_path = self.check_yaml_filename()
config = yaml.load(open(yaml_path))
config = yaml.safe_load(open(yaml_path))
except IOError as e:
if e.errno == errno.ENOENT:
raise errors.FigFileNotFound(os.path.basename(e.filename))