Commit a7578c2f authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

corrected reading of blacklist files

parent fbd0686d
......@@ -178,7 +178,7 @@ class Dataset(object):
blacklist = list(blacklist)
for filename in filenames:
with open(filename, 'r') as f:
blacklist.extend(s.strip() for s in f.splitlines())
blacklist.extend(s.strip() for s in f.read().splitlines())
for x in blacklist:
if isinstance(x, basestring):
......@@ -191,7 +191,7 @@ class Dataset(object):
whitelist = list(whitelist)
for filename in filenames:
with open(filename, 'r') as f:
whitelist.extend(s.strip() for s in f.splitlines())
whitelist.extend(s.strip() for s in f.read().splitlines())
if self.whitelist_nslc is None:
self.whitelist_nslc = set()
......
Supports Markdown
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