]> granicus.if.org Git - python/commitdiff
Use 4-space indents.
authorFred Drake <fdrake@acm.org>
Mon, 23 Oct 2000 17:00:30 +0000 (17:00 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 23 Oct 2000 17:00:30 +0000 (17:00 +0000)
Lib/test/test_exceptions.py

index 076f4704e44d5aec77e0a2226cd351d0fae4292a..73c2489022c2a82a8d59cf33df8beb568b15fc39 100644 (file)
@@ -36,14 +36,14 @@ fp.close()
 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')
@@ -76,7 +76,7 @@ except NameError: pass
 r(OverflowError)
 x = 1
 try:
-        while 1: x = x+x
+    while 1: x = x+x
 except OverflowError: pass
 
 r(RuntimeError)