1
0
forked from VimPlug/jedi

Understand context managers correctly

Fixes #812.
This commit is contained in:
Dave Halter
2017-09-13 11:00:10 +02:00
parent 5ff7e3dbbe
commit 4c2d1ea7e7
4 changed files with 21 additions and 1 deletions

View File

@@ -227,3 +227,12 @@ z = zipfile.ZipFile("foo")
# It's too slow. So we don't run it at the moment.
##? ['upper']
z.read('name').upper
# -----------------
# contextlib
# -----------------
import contextlib
with contextlib.closing('asd') as string:
#? str()
string