##// END OF EJS Templates
fix prun parsing of escapes (closes #1302)
Paul Ivanov -
Show More
@@ -1391,12 +1391,10 b' Currently the magic system has the following functions:\\n"""'
1391 """
1391 """
1392
1392
1393 opts_def = Struct(D=[''],l=[],s=['time'],T=[''])
1393 opts_def = Struct(D=[''],l=[],s=['time'],T=[''])
1394 # protect user quote marks
1395 parameter_s = parameter_s.replace('"',r'\"').replace("'",r"\'")
1396
1394
1397 if user_mode: # regular user call
1395 if user_mode: # regular user call
1398 opts,arg_str = self.parse_options(parameter_s,'D:l:rs:T:q',
1396 opts,arg_str = self.parse_options(parameter_s,'D:l:rs:T:q',
1399 list_all=1)
1397 list_all=1, posix=False)
1400 namespace = self.shell.user_ns
1398 namespace = self.shell.user_ns
1401 else: # called to run a program by %run -p
1399 else: # called to run a program by %run -p
1402 try:
1400 try:
General Comments 0
You need to be logged in to leave comments. Login now