Fixing two i-am-not-so-fast bugs
This commit is contained in:
parent
5b0ca05fe3
commit
2cf493eb08
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue