summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pwd.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pwd.py')
-rw-r--r--Lib/test/test_pwd.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/Lib/test/test_pwd.py b/Lib/test/test_pwd.py
index d900686..79bf866 100644
--- a/Lib/test/test_pwd.py
+++ b/Lib/test/test_pwd.py
@@ -9,17 +9,17 @@ for e in entries:
name = e[0]
uid = e[2]
if verbose:
- print name, uid
+ print name, uid
print 'pwd.getpwuid()'
dbuid = pwd.getpwuid(uid)
if dbuid[0] <> name:
- print 'Mismatch in pwd.getpwuid()'
+ print 'Mismatch in pwd.getpwuid()'
print 'pwd.getpwnam()'
dbname = pwd.getpwnam(name)
if dbname[2] <> uid:
- print 'Mismatch in pwd.getpwnam()'
+ print 'Mismatch in pwd.getpwnam()'
else:
- print 'name matches uid'
+ print 'name matches uid'
break
# try to get some errors
@@ -35,21 +35,21 @@ fakename = allnames[namei]
while bynames.has_key(fakename):
chars = map(None, fakename)
for i in range(len(chars)):
- if chars[i] == 'z':
- chars[i] = 'A'
- break
- elif chars[i] == 'Z':
- continue
- else:
- chars[i] = chr(ord(chars[i]) + 1)
- break
+ if chars[i] == 'z':
+ chars[i] = 'A'
+ break
+ elif chars[i] == 'Z':
+ continue
+ else:
+ chars[i] = chr(ord(chars[i]) + 1)
+ break
else:
- namei = namei + 1
- try:
- fakename = allnames[namei]
- except IndexError:
- # should never happen... if so, just forget it
- break
+ namei = namei + 1
+ try:
+ fakename = allnames[namei]
+ except IndexError:
+ # should never happen... if so, just forget it
+ break
fakename = string.join(map(None, chars), '')
try: