Skip to content
Browse files

Make the input rewriting clearer by prefixing with ESC_MAGIC.

  • Loading branch information...
1 parent cb24a4c commit 16d913835237ed5503c4b154d0444fedfd2f6f63 @dwf committed Apr 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/prefilter.py
View
2 IPython/core/prefilter.py
@@ -881,7 +881,7 @@ def handle(self, line_info):
# will make clear that the input was rewritten, and individual
# magics should print a useful error message that show how to call.
the_rest = ''
- self.shell.auto_rewrite_input(ifun)
+ self.shell.auto_rewrite_input(ESC_MAGIC + ifun)
cmd = '%sget_ipython().magic(%s)' % (line_info.pre_whitespace,
make_quoted_expr(ifun + " " + the_rest))

0 comments on commit 16d9138

Please sign in to comment.
Something went wrong with that request. Please try again.