Two more trivial fixes.

This commit is contained in:
Guido van Rossum 2007-02-11 18:54:18 +00:00
parent cd70eee244
commit 9afbb4e364
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: