Commit e5e7159c authored by Ben Cooksley's avatar Ben Cooksley

Switch from yaml.load to yaml.safe_load.

CCMAIL: ostroffjh@aya.yale.edu
parent ca618eed
......@@ -36,7 +36,7 @@ for currentPath, subdirectories, filesInFolder in os.walk( repositoryMetadataPre
# Lets load the current metadata up
metadataPath = os.path.join( currentPath, 'metadata.yaml' )
metadataFile = open( metadataPath, 'r' )
metadata = yaml.load( metadataFile )
metadata = yaml.safe_load( metadataFile )
# Have we found a repository?
# If it is a repository, is it active?
......
......@@ -33,7 +33,7 @@ for currentPath, subdirectories, filesInFolder in os.walk( repositoryMetadataPre
# Lets load the current metadata up
metadataPath = os.path.join( currentPath, 'metadata.yaml' )
metadataFile = open( metadataPath, 'r' )
metadata = yaml.load( metadataFile )
metadata = yaml.safe_load( metadataFile )
# Have we found a repository?
# If it is a repository, is it active?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment