comparison cmd2.py @ 424:6773286315f0

require pyparsing 1.5.6 for its Python 3 power
author catherine.devlin@gmail.com
date Wed, 20 Jul 2011 23:23:09 -0400
parents 6ffa49335dcb
children 1c66290a4119
comparison
equal deleted inserted replaced
423:fe75803a4a5e 424:6773286315f0
38 import traceback 38 import traceback
39 import platform 39 import platform
40 import copy 40 import copy
41 from code import InteractiveConsole, InteractiveInterpreter 41 from code import InteractiveConsole, InteractiveInterpreter
42 from optparse import make_option 42 from optparse import make_option
43 43 import pyparsing
44 if sys.version_info[0] > 2:
45 import pyparsing_py3 as pyparsing
46 raw_input = input
47 else:
48 import pyparsing
49 44
50 __version__ = '0.6.3' 45 __version__ = '0.6.3'
51 46
52 class OptionParser(optparse.OptionParser): 47 class OptionParser(optparse.OptionParser):
53 def exit(self, status=0, msg=None): 48 def exit(self, status=0, msg=None):