diff options
author | Guido van Rossum <guido@python.org> | 1998-03-26 19:42:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-26 19:42:58 (GMT) |
commit | 41360a4696f488e49e5409b3b1baf1fff6ae0044 (patch) | |
tree | 9c9b73b7446cc9fc36e09038bf26d889bb5b6f24 /Lib/test/test_pwd.py | |
parent | cd0f59ea0824ad6f897f05c2db4d4471e47e6063 (diff) | |
download | cpython-41360a4696f488e49e5409b3b1baf1fff6ae0044.zip cpython-41360a4696f488e49e5409b3b1baf1fff6ae0044.tar.gz cpython-41360a4696f488e49e5409b3b1baf1fff6ae0044.tar.bz2 |
Mass check-in after untabifying all files that need it.
Diffstat (limited to 'Lib/test/test_pwd.py')
-rw-r--r-- | Lib/test/test_pwd.py | 36 |
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: |