Fixing two i-am-not-so-fast bugs

This commit is contained in:
Andy Teijelo 2015-11-06 19:51:59 -05:00
parent 5b0ca05fe3
commit 2cf493eb08

View file

@ -130,13 +130,13 @@ def load_users():
for l in f:
l = l.strip()
if l.startswith("#"):
m = re.match("#\s+created by\s+(\S+)")
m = re.match("#\s+created by\s+(\S+)", l)
if m:
creator = m.group(1)
continue
m = re.match("(^\S+).*-Password\s+:=\s+\"(\S+)\"", l)
if m:
users.append((m.group(1), m.group(2), creator)
users.append((m.group(1), m.group(2), creator))
creator = None
return users