returns a dict associating source package name with a list of open wnpp
bugs (Yes, there might be more than one)
"""
- lines = open(file).readlines()
+
+ line = []
+ try:
+ f = open(file)
+ lines = f.readlines()
+ except IOError, e:
+ print "Warning: Couldn't open %s; don't know about WNPP bugs, so won't close any." % file
+ lines = []
wnpp = {}
for line in lines:
bugs.append(bug_no)
wnpp[source] = bugs
return wnpp
-