##// END OF EJS Templates
BUG: Use arg_split instead of shlex.split
Robert Kern -
Show More
@@ -46,12 +46,10 b' arguments::'
46 # The full license is in the file COPYING.txt, distributed with this software.
46 # The full license is in the file COPYING.txt, distributed with this software.
47 #-----------------------------------------------------------------------------
47 #-----------------------------------------------------------------------------
48
48
49 # Stdlib imports
50 import shlex
51
52 # Our own imports
49 # Our own imports
53 from IPython.external import argparse
50 from IPython.external import argparse
54 from IPython.core.error import UsageError
51 from IPython.core.error import UsageError
52 from IPython.utils.process import arg_split
55
53
56
54
57 class MagicArgumentParser(argparse.ArgumentParser):
55 class MagicArgumentParser(argparse.ArgumentParser):
@@ -85,7 +83,7 b' class MagicArgumentParser(argparse.ArgumentParser):'
85 def parse_argstring(self, argstring):
83 def parse_argstring(self, argstring):
86 """ Split a string into an argument list and parse that argument list.
84 """ Split a string into an argument list and parse that argument list.
87 """
85 """
88 argv = shlex.split(argstring)
86 argv = arg_split(argstring)
89 return self.parse_args(argv)
87 return self.parse_args(argv)
90
88
91
89
General Comments 0
You need to be logged in to leave comments. Login now