Skip to content

Commit 4f39105

Browse files
committed
Delete argspec from doc to fix SyntaxError
1 parent 0589ec2 commit 4f39105

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ftplugin/python/vim_ipython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ def get_doc(word, level=0):
308308
return ["Not connected to IPython, cannot query: %s" % word]
309309
if word.startswith('%'): # request for magic documentation
310310
request = ('_doc = get_ipython().object_inspect("{0}", '
311-
'detail_level={1})').format(word, level)
311+
'detail_level={1})\n'
312+
'del _doc["argspec"]').format(word, level)
312313
try:
313314
msg_id = send(request, silent=True, user_variables=['_doc'])
314315
except TypeError: # change in IPython 3.0+

0 commit comments

Comments
 (0)