Kaydet (Commit) 0009c4ea authored tarafından Tim Peters's avatar Tim Peters

Whitespace normalization.

üst edf22102
...@@ -24,7 +24,7 @@ except SyntaxError: ...@@ -24,7 +24,7 @@ except SyntaxError:
print "testing complex args" print "testing complex args"
def comp_args((a, b)): def comp_args((a, b)):
print a,b print a,b
comp_args((1, 2)) comp_args((1, 2))
......
...@@ -98,7 +98,7 @@ def testLegalChildren(): ...@@ -98,7 +98,7 @@ def testLegalChildren():
else: else:
print "dom.appendChild didn't raise HierarchyRequestErr" print "dom.appendChild didn't raise HierarchyRequestErr"
nodemap = elem.attributes nodemap = elem.attributes
try: nodemap.setNamedItem(text) try: nodemap.setNamedItem(text)
except HierarchyRequestErr: pass except HierarchyRequestErr: pass
else: else:
......
...@@ -87,4 +87,3 @@ def check_syntax(statement): ...@@ -87,4 +87,3 @@ def check_syntax(statement):
pass pass
else: else:
print 'Missing SyntaxError: "%s"' % statement print 'Missing SyntaxError: "%s"' % statement
...@@ -92,7 +92,7 @@ for sync in [zlib.Z_NO_FLUSH, zlib.Z_SYNC_FLUSH, zlib.Z_FULL_FLUSH]: ...@@ -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 # Test for the odd flushing bugs noted in 2.0, and hopefully fixed in 2.1
import random import random
random.seed(1) random.seed(1)
print 'Testing on 17K of random data' print 'Testing on 17K of random data'
...@@ -105,7 +105,7 @@ d=zlib.decompressobj() ...@@ -105,7 +105,7 @@ d=zlib.decompressobj()
a="" a=""
for i in range(17*1024): for i in range(17*1024):
a=a+chr(random.randint(0,255)) a=a+chr(random.randint(0,255))
# compress, sync-flush, and decompress # compress, sync-flush, and decompress
t = d.decompress( c.compress(a)+c.flush(zlib.Z_SYNC_FLUSH) ) t = d.decompress( c.compress(a)+c.flush(zlib.Z_SYNC_FLUSH) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment