Manifest file handles should be closed once they've been parsed
@@ -37,7 +37,8 @@ def get_dataset(which='glove', limit=-1):
'point_type': 'float'
}
if os.path.exists(local_fn + '.yaml'):
- y = yaml.load(open(local_fn + '.yaml'))
+ with open(local_fn + '.yaml') as mf:
+ y = yaml.load(mf)
if 'dataset' in y:
manifest.update(y['dataset'])
