From: Tim Peters Date: Wed, 21 Feb 2001 07:29:48 +0000 (+0000) Subject: Whitespace normalization. X-Git-Tag: v2.1b1~245 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0009c4ea590b5bb4c00c33bc96dca47a42e720f1;p=python Whitespace normalization. --- diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index cb240601aa..17d35006ea 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -24,7 +24,7 @@ except SyntaxError: print "testing complex args" def comp_args((a, b)): - print a,b + print a,b comp_args((1, 2)) diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 5cc1e69293..5ff1beb90b 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -98,7 +98,7 @@ def testLegalChildren(): else: print "dom.appendChild didn't raise HierarchyRequestErr" - nodemap = elem.attributes + nodemap = elem.attributes try: nodemap.setNamedItem(text) except HierarchyRequestErr: pass else: diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 3a20b2e474..d77120e015 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -87,4 +87,3 @@ def check_syntax(statement): pass else: print 'Missing SyntaxError: "%s"' % statement - diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 3b783999d5..198f0d9ef1 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -92,7 +92,7 @@ for sync in [zlib.Z_NO_FLUSH, zlib.Z_SYNC_FLUSH, zlib.Z_FULL_FLUSH]: # Test for the odd flushing bugs noted in 2.0, and hopefully fixed in 2.1 import random -random.seed(1) +random.seed(1) print 'Testing on 17K of random data' @@ -105,7 +105,7 @@ d=zlib.decompressobj() a="" for i in range(17*1024): a=a+chr(random.randint(0,255)) - + # compress, sync-flush, and decompress t = d.decompress( c.compress(a)+c.flush(zlib.Z_SYNC_FLUSH) )