Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26c32c0

Browse files
committed
fix interrupt logic for IPython >=1.0, closes #76
1 parent f732033 commit 26c32c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ftplugin/python/ipy.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def set_pid():
566566
try:
567567
pid = int(child['content']['user_variables']['_pid'])
568568
except TypeError: # change in IPython 1.0.dev moved this out
569-
pid = child['content']['user_variables']['_pid']['data']['text/plain']
569+
pid = int(child['content']['user_variables']['_pid']['data']['text/plain'])
570570
return pid
571571

572572

0 commit comments

Comments
 (0)