From 1097de13a26cab91a3e35bcdba801c19de07b06b Mon Sep 17 00:00:00 2001 From: kotfu Date: Sun, 29 Apr 2018 16:12:31 -0600 Subject: Clean up documentation references to pyparsing --- examples/arg_print.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/arg_print.py') diff --git a/examples/arg_print.py b/examples/arg_print.py index bd8ff6be..95e8ff01 100755 --- a/examples/arg_print.py +++ b/examples/arg_print.py @@ -21,13 +21,10 @@ class ArgumentAndOptionPrinter(cmd2.Cmd): """ Example cmd2 application where we create commands that just print the arguments they are called with.""" def __init__(self): - # Uncomment this line to disable Python-style comments but still allow C-style comments - # self.commentGrammars = pyparsing.Or([pyparsing.cStyleComment]) - # Create command aliases which are shorter self.shortcuts.update({'$': 'aprint', '%': 'oprint'}) - # Make sure to call this super class __init__ *after* setting commentGrammars and/or updating shortcuts + # Make sure to call this super class __init__ *after* setting and/or updating shortcuts super().__init__() # NOTE: It is critical that the super class __init__ method be called AFTER updating certain parameters which # are not settable at runtime. This includes the shortcuts, multiline_commands, etc. -- cgit v1.2.1