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