Two more trivial fixes.
This commit is contained in:
parent
cd70eee244
commit
9afbb4e364
|
@ -50,7 +50,7 @@ class GroupDatabaseTestCase(unittest.TestCase):
|
||||||
bynames[n] = g
|
bynames[n] = g
|
||||||
bygids[g] = n
|
bygids[g] = n
|
||||||
|
|
||||||
allnames = bynames.keys()
|
allnames = list(bynames.keys())
|
||||||
namei = 0
|
namei = 0
|
||||||
fakename = allnames[namei]
|
fakename = allnames[namei]
|
||||||
while fakename in bynames:
|
while fakename in bynames:
|
||||||
|
|
|
@ -55,7 +55,7 @@ class PwdTest(unittest.TestCase):
|
||||||
bynames[n] = u
|
bynames[n] = u
|
||||||
byuids[u] = n
|
byuids[u] = n
|
||||||
|
|
||||||
allnames = bynames.keys()
|
allnames = list(bynames.keys())
|
||||||
namei = 0
|
namei = 0
|
||||||
fakename = allnames[namei]
|
fakename = allnames[namei]
|
||||||
while fakename in bynames:
|
while fakename in bynames:
|
||||||
|
|
Loading…
Reference in New Issue