mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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 @@ 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue