britney.py: Fix use before assignment

Signed-off-by: Niels Thykier <niels@thykier.net>
debian
Niels Thykier 10 years ago
parent 74060e4e0a
commit 8623ffc224

@ -832,6 +832,7 @@ class Britney(object):
for who in self.HINTS.keys(): for who in self.HINTS.keys():
if who == 'command-line': if who == 'command-line':
lines = self.options.hints and self.options.hints.split(';') or () lines = self.options.hints and self.options.hints.split(';') or ()
filename = '<cmd-line>'
else: else:
filename = os.path.join(basedir, "Hints", who) filename = os.path.join(basedir, "Hints", who)
if not os.path.isfile(filename): if not os.path.isfile(filename):

Loading…
Cancel
Save