mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Make reindent.py happy (convert everything to 4-space indents!).
This commit is contained in:
parent
2e6d25c5bb
commit
004d5e6880
70 changed files with 1215 additions and 1247 deletions
|
@ -6,12 +6,12 @@ import test_support
|
|||
|
||||
|
||||
def same_hash(*objlist):
|
||||
# hash each object given an raise TestFailed if
|
||||
# the hash values are not all the same
|
||||
hashed = map(hash, objlist)
|
||||
for h in hashed[1:]:
|
||||
if h != hashed[0]:
|
||||
raise TestFailed, "hashed values differ: %s" % `objlist`
|
||||
# hash each object given an raise TestFailed if
|
||||
# the hash values are not all the same
|
||||
hashed = map(hash, objlist)
|
||||
for h in hashed[1:]:
|
||||
if h != hashed[0]:
|
||||
raise TestFailed, "hashed values differ: %s" % `objlist`
|
||||
|
||||
|
||||
|
||||
|
@ -21,6 +21,3 @@ same_hash(int(1), long(1), float(1), complex(1))
|
|||
same_hash(long(1.23e300), float(1.23e300))
|
||||
|
||||
same_hash(float(0.5), complex(0.5, 0.0))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue