PEP 492: refactor example code. (#1163)

This commit is contained in:
Ezio Melotti 2019-09-12 12:28:36 +01:00 committed by Yury Selivanov
parent ef80b51868
commit 0eeb96f1ce
1 changed files with 2 additions and 2 deletions

View File

@ -386,9 +386,9 @@ which is semantically equivalent to::
mgr = (EXPR)
aexit = type(mgr).__aexit__
aenter = type(mgr).__aenter__(mgr)
aenter = type(mgr).__aenter__
VAR = await aenter
VAR = await aenter(mgr)
try:
BLOCK
except: