Whitespace normalization.

This commit is contained in:
Tim Peters 2003-05-12 20:19:37 +00:00
parent 0ff2ee0561
commit c2659cff5d
7 changed files with 24 additions and 25 deletions

View File

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

View File

@ -258,8 +258,8 @@ vereq(list(tuple(f())), range(1000))
# Verify that __getitem__ overrides are not recognized by __iter__
class T(tuple):
def __getitem__(self, key):
return str(key) + '!!!'
def __getitem__(self, key):
return str(key) + '!!!'
vereq(iter(T((1,2))).next(), 1)
print '6.5.3 Lists'
@ -455,8 +455,8 @@ vereq(a, [0, 1, 1, 3, 2, 5, 3, 7, 4, 9])
# Verify that __getitem__ overrides are not recognized by __iter__
class L(list):
def __getitem__(self, key):
return str(key) + '!!!'
def __getitem__(self, key):
return str(key) + '!!!'
vereq(iter(L([1,2])).next(), 1)