Whitespace normalization.

This commit is contained in:
Tim Peters 2002-05-23 15:15:30 +00:00
parent f655328483
commit 8ac1495a6a
20 changed files with 100 additions and 101 deletions

View File

@ -238,16 +238,16 @@ def abspath(path):
# realpath is a no-op on systems without islink support
def realpath(path):
path = abspath(path)
try:
import macfs
except ImportError:
return path
if not path:
return path
components = path.split(':')
path = components[0] + ':'
for c in components[1:]:
path = join(path, c)
path = macfs.ResolveAliasFile(path)[0].as_pathname()
return path
path = abspath(path)
try:
import macfs
except ImportError:
return path
if not path:
return path
components = path.split(':')
path = components[0] + ':'
for c in components[1:]:
path = join(path, c)
path = macfs.ResolveAliasFile(path)[0].as_pathname()
return path

View File

@ -56,4 +56,3 @@ def test_main():
if __name__ == "__main__":
test_main()

View File

@ -38,7 +38,7 @@ def test(name, input, output, *args):
value = apply(f, (input,) + args)
if value is input:
if verbose:
print 'no'
print 'no'
print '*',f, `input`, `output`, `value`
return
if value != output:

View File

@ -68,7 +68,7 @@ def test(method, input, output, *args):
exc = sys.exc_info()[:2]
if value is input:
if verbose:
print 'no'
print 'no'
print '*',f, `input`, `output`, `value`
return
if value != output or type(value) is not type(output):