summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2008-09-24 18:00:22 -0400
committerCatherine Devlin <catherine.devlin@gmail.com>2008-09-24 18:00:22 -0400
commit28ad283e1bf5eabb9377139db47985bb69d754ee (patch)
tree0f4e0653c90a5fa10cd415cab079b6150234e3d7 /cmd2.py
parent5f98566ac215842a0fbe76f8f301fcfc82105e18 (diff)
downloadcmd2-git-28ad283e1bf5eabb9377139db47985bb69d754ee.tar.gz
fixed paren bug in terminatorPattern resultsName
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index dddbf3fd..c38a8176 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -193,8 +193,8 @@ class Cmd(cmd.Cmd):
result = "\n".join('%s: %s' % (sc[0], sc[1]) for sc in self.shortcuts.items())
self.stdout.write("Single-key shortcuts for other commands:\n%s\n" % (result))
- terminatorPattern = (pyparsing.Literal(';') ^ pyparsing.Literal('\n\n')) \
- ^ (pyparsing.Literal('\nEOF') + pyparsing.lineEnd) ('terminator')
+ terminatorPattern = ((pyparsing.Literal(';') ^ pyparsing.Literal('\n\n'))
+ ^ (pyparsing.Literal('\nEOF') + pyparsing.lineEnd))('terminator')
argSeparatorPattern = pyparsing.Word(pyparsing.printables)('command') \
+ pyparsing.SkipTo(pyparsing.StringEnd())('args')
filenamePattern = pyparsing.Word(pyparsing.alphanums + '#$-_~{},.!:\\/')