Move the __enter__ call out of the try suite. I was nuts putting it

inside.
This commit is contained in:
Guido van Rossum 2005-05-16 00:36:01 +00:00
parent cc6ea270d6
commit 22bae2bbd0
1 changed files with 1 additions and 1 deletions

View File

@ -160,8 +160,8 @@ Specification
abc = EXPR abc = EXPR
exc = (None, None, None) exc = (None, None, None)
try: try:
VAR = abc.__enter__()
try: try:
VAR = abc.__enter__()
BLOCK BLOCK
except: except:
exc = sys.exc_info() exc = sys.exc_info()