mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +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
|
@ -10,15 +10,15 @@ print '3.1 Dictionary lookups succeed even if __cmp__() raises an exception'
|
|||
# SourceForge bug #112558:
|
||||
# http://sourceforge.net/bugs/?func=detailbug&bug_id=112558&group_id=5470
|
||||
|
||||
class BadDictKey:
|
||||
def __hash__(self):
|
||||
return hash(self.__class__)
|
||||
class BadDictKey:
|
||||
def __hash__(self):
|
||||
return hash(self.__class__)
|
||||
|
||||
def __cmp__(self, other):
|
||||
if isinstance(other, self.__class__):
|
||||
print "raising error"
|
||||
raise RuntimeError, "gotcha"
|
||||
return other
|
||||
def __cmp__(self, other):
|
||||
if isinstance(other, self.__class__):
|
||||
print "raising error"
|
||||
raise RuntimeError, "gotcha"
|
||||
return other
|
||||
|
||||
d = {}
|
||||
x1 = BadDictKey()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue