From 004d5e6880940ddbb38460986ac62ee0f1bae97d Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 23 Oct 2000 17:22:08 +0000 Subject: Make reindent.py happy (convert everything to 4-space indents!). --- Lib/test/test_operations.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Lib/test/test_operations.py') diff --git a/Lib/test/test_operations.py b/Lib/test/test_operations.py index c14f480eeb..4c76a8fa51 100644 --- a/Lib/test/test_operations.py +++ b/Lib/test/test_operations.py @@ -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__) - - def __cmp__(self, other): - if isinstance(other, self.__class__): - print "raising error" - raise RuntimeError, "gotcha" - return other +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 d = {} x1 = BadDictKey() -- cgit v1.2.1