mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-04 07:01:29 +00:00
Don't use the file builtin
Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
5d7393cf86
commit
b64afb639f
@ -364,7 +364,7 @@ class Britney(object):
|
|||||||
# are handled as an ad-hoc case
|
# are handled as an ad-hoc case
|
||||||
self.MINDAYS = {}
|
self.MINDAYS = {}
|
||||||
self.HINTS = {'command-line': self.HINTS_ALL}
|
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_"):
|
if k.startswith("MINDAYS_"):
|
||||||
self.MINDAYS[k.split("_")[1].lower()] = int(v)
|
self.MINDAYS[k.split("_")[1].lower()] = int(v)
|
||||||
elif k.startswith("HINTS_"):
|
elif k.startswith("HINTS_"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user