Merge pull request #303 from mozz100/master

Use yaml.safe_load instead of yaml.load
This commit is contained in:
Ben Firshman 2014-07-10 09:50:51 -07:00
commit e1a3fc2536
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))