mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Use 4-space indents.
This commit is contained in:
parent
2ec80faae5
commit
2e6d25c5bb
1 changed files with 8 additions and 8 deletions
|
|
@ -36,14 +36,14 @@ def r(thing):
|
||||||
fp = open(TESTFN, 'r')
|
fp = open(TESTFN, 'r')
|
||||||
savestdin = sys.stdin
|
savestdin = sys.stdin
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
sys.stdin = fp
|
sys.stdin = fp
|
||||||
x = raw_input()
|
x = raw_input()
|
||||||
except EOFError:
|
except EOFError:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
sys.stdin = savestdin
|
sys.stdin = savestdin
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|
||||||
r(IOError)
|
r(IOError)
|
||||||
try: open('this file does not exist', 'r')
|
try: open('this file does not exist', 'r')
|
||||||
|
|
@ -76,7 +76,7 @@ def r(thing):
|
||||||
r(OverflowError)
|
r(OverflowError)
|
||||||
x = 1
|
x = 1
|
||||||
try:
|
try:
|
||||||
while 1: x = x+x
|
while 1: x = x+x
|
||||||
except OverflowError: pass
|
except OverflowError: pass
|
||||||
|
|
||||||
r(RuntimeError)
|
r(RuntimeError)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue