mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-24 20:01:15 +00:00
Don't use the file builtin
Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
94f18322db
commit
58a6a6ed1d
@ -364,7 +364,7 @@ class Britney(object):
|
||||
# are handled as an ad-hoc case
|
||||
self.MINDAYS = {}
|
||||
self.HINTS = {'command-line': self.HINTS_ALL}
|
||||
for k, v in [map(string.strip,r.split('=', 1)) for r in file(self.options.config) if '=' in r and not r.strip().startswith('#')]:
|
||||
for k, v in [map(string.strip,r.split('=', 1)) for r in open(self.options.config) if '=' in r and not r.strip().startswith('#')]:
|
||||
if k.startswith("MINDAYS_"):
|
||||
self.MINDAYS[k.split("_")[1].lower()] = int(v)
|
||||
elif k.startswith("HINTS_"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user