Whitespace normalization.
This commit is contained in:
parent
f655328483
commit
8ac1495a6a
|
@ -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
|
||||
|
|
|
@ -56,4 +56,3 @@ def test_main():
|
|||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue