|
84 | 84 | except ImportError: |
85 | 85 | pass |
86 | 86 |
|
87 | | -__version__ = '0.7.4' |
| 87 | +__version__ = '0.7.5a' |
88 | 88 |
|
89 | 89 | # Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past |
90 | 90 | pyparsing.ParserElement.enablePackrat() |
@@ -2270,36 +2270,7 @@ def __nonzero__(self): |
2270 | 2270 | if __name__ == '__main__': |
2271 | 2271 | # If run as the main application, simply start a bare-bones cmd2 application with only built-in functionality. |
2272 | 2272 |
|
2273 | | - # Set this to True to include the ipy command if IPython is installed, which supports advanced interactive debugging |
2274 | | - # of your application via introspection on self. |
2275 | | - # include_ipy = False |
2276 | | - # |
2277 | | - # app = Cmd(use_ipython=include_ipy) |
2278 | | - # app.cmdloop() |
2279 | | - |
2280 | | - |
2281 | | - class HelpApp(Cmd): |
2282 | | - """Class for testing custom help_* methods which override docstring help.""" |
2283 | | - |
2284 | | - def __init__(self, *args, **kwargs): |
2285 | | - # Need to use this older form of invoking super class constructor to support Python 2.x and Python 3.x |
2286 | | - Cmd.__init__(self, *args, **kwargs) |
2287 | | - |
2288 | | - def do_squat(self, arg): |
2289 | | - """This docstring help will never be shown because the help_squat method overrides it.""" |
2290 | | - pass |
2291 | | - |
2292 | | - def help_squat(self): |
2293 | | - self.stdout.write('This command does diddly squat...\n') |
2294 | | - |
2295 | | - def do_edit(self, arg): |
2296 | | - """This overrides the edit command and does nothing.""" |
2297 | | - pass |
2298 | | - |
2299 | | - # This command will be in the "undocumented" section of the help menu |
2300 | | - def do_undoc(self, arg): |
2301 | | - pass |
2302 | | - |
2303 | | - |
2304 | | - app = HelpApp() |
| 2273 | + # Set "use_iptyhon" to True to include the ipy command if IPython is installed, which supports advanced interactive |
| 2274 | + # debugging of your application via introspection on self. |
| 2275 | + app = Cmd(use_ipython=False) |
2305 | 2276 | app.cmdloop() |
0 commit comments