Permalink
Browse files

fix prun parsing of escapes (closes #1302)

  • Loading branch information...
1 parent 9e2f4a8 commit 18ee0092626347d343427ca0ed85d88991e97838 @ivanov ivanov committed with Jan 21, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 IPython/core/magic.py
View
4 IPython/core/magic.py
@@ -1389,12 +1389,10 @@ def magic_prun(self, parameter_s ='',user_mode=1,
"""
opts_def = Struct(D=[''],l=[],s=['time'],T=[''])
- # protect user quote marks
- parameter_s = parameter_s.replace('"',r'\"').replace("'",r"\'")
if user_mode: # regular user call
opts,arg_str = self.parse_options(parameter_s,'D:l:rs:T:',
- list_all=1)
+ list_all=1, posix=False)
namespace = self.shell.user_ns
else: # called to run a program by %run -p
try:

0 comments on commit 18ee009

Please sign in to comment.