Show More
@@ -560,12 +560,13 b' def _make_help_call(target, esc, lspace, next_input=None):' | |||
|
560 | 560 | method = 'pinfo2' if esc == '??' \ |
|
561 | 561 | else 'psearch' if '*' in target \ |
|
562 | 562 | else 'pinfo' |
|
563 | ||
|
563 | arg = make_quoted_expr(" ".join([method, target])) | |
|
564 | ||
|
564 | 565 | if next_input: |
|
565 |
tpl = '%sget_ipython().magic( |
|
|
566 |
return tpl % (lspace, |
|
|
566 | tpl = '%sget_ipython().magic(%s, next_input=%s)' | |
|
567 | return tpl % (lspace, arg, make_quoted_expr(next_input)) | |
|
567 | 568 | else: |
|
568 |
return '%sget_ipython().magic( |
|
|
569 | return '%sget_ipython().magic(%s)' % (lspace, arg) | |
|
569 | 570 | |
|
570 | 571 | _initial_space_re = re.compile(r'\s*') |
|
571 | 572 | _help_end_re = re.compile(r"""(%? |
General Comments 0
You need to be logged in to leave comments.
Login now