PEP 3134: Fix indentation in example. (#1699)

This commit is contained in:
Serhiy Storchaka 2020-10-31 15:41:02 +02:00 committed by GitHub
parent e772923bb0
commit 55afd5fdaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -171,13 +171,13 @@ The following more elaborate example demonstrates the handling of a mixture of
def main(filename):
file = open(filename) # oops, forgot the 'w'
try:
try:
try:
compute()
except Exception, exc:
log(file, exc)
finally:
file.clos() # oops, misspelled 'close'
compute()
except Exception, exc:
log(file, exc)
finally:
file.clos() # oops, misspelled 'close'
def compute():
1/0