diff Lib/test/test_exceptions.py @ 7747:aedd2d0dcb31 legacy-trunk

Mass check-in after untabifying all files that need it.
author Guido van Rossum <guido@python.org>
date Thu, 26 Mar 1998 19:42:58 +0000
parents cff105a3a384
children 406b0e24d62e
line wrap: on
line diff
--- a/Lib/test/test_exceptions.py	Thu Mar 26 19:30:30 1998 +0000
+++ b/Lib/test/test_exceptions.py	Thu Mar 26 19:42:58 1998 +0000
@@ -8,9 +8,9 @@
 
 def r(thing):
     if type(thing) == ClassType:
-	print thing.__name__
+        print thing.__name__
     else:
-	print thing
+        print thing
 
 r(AttributeError)
 import sys
@@ -24,14 +24,14 @@
 fp = open(TESTFN, 'r')
 savestdin = sys.stdin
 try:
-	try:
-		sys.stdin = fp
-		x = raw_input()
-	except EOFError:
-		pass
+        try:
+                sys.stdin = fp
+                x = raw_input()
+        except EOFError:
+                pass
 finally:
-	sys.stdin = savestdin
-	fp.close()
+        sys.stdin = savestdin
+        fp.close()
 
 r(IOError)
 try: open('this file does not exist', 'r')
@@ -64,7 +64,7 @@
 r(OverflowError)
 x = 1
 try:
-	while 1: x = x+x
+        while 1: x = x+x
 except OverflowError: pass
 
 r(RuntimeError)