Permalink
Browse files

fix prun parsing of escapes (closes #1302)

  • Loading branch information...
1 parent 6a26692 commit 1f9283340e9e2b73251db71a2a406aa3f897149c @ivanov committed Jan 21, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 IPython/core/magic.py
View
@@ -1391,12 +1391,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:q',
- 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 1f92833

Please sign in to comment.