Translate lines escaped with: %
(line_info)
| 229 | return _make_help_call(line_info.ifun, line_info.esc, line_info.pre) |
| 230 | |
| 231 | def _tr_magic(line_info): |
| 232 | "Translate lines escaped with: %" |
| 233 | tpl = '%sget_ipython().run_line_magic(%r, %r)' |
| 234 | if line_info.line.startswith(ESC_MAGIC2): |
| 235 | return line_info.line |
| 236 | cmd = ' '.join([line_info.ifun, line_info.the_rest]).strip() |
| 237 | #Prepare arguments for get_ipython().run_line_magic(magic_name, magic_args) |
| 238 | t_magic_name, _, t_magic_arg_s = cmd.partition(' ') |
| 239 | t_magic_name = t_magic_name.lstrip(ESC_MAGIC) |
| 240 | return tpl % (line_info.pre, t_magic_name, t_magic_arg_s) |
| 241 | |
| 242 | def _tr_quote(line_info): |
| 243 | "Translate lines escaped with: ," |
nothing calls this directly
no outgoing calls
no test coverage detected