diff options
| author | Catherine Devlin <catherine.devlin@gmail.com> | 2008-09-24 18:00:22 -0400 |
|---|---|---|
| committer | Catherine Devlin <catherine.devlin@gmail.com> | 2008-09-24 18:00:22 -0400 |
| commit | 28ad283e1bf5eabb9377139db47985bb69d754ee (patch) | |
| tree | 0f4e0653c90a5fa10cd415cab079b6150234e3d7 /cmd2.py | |
| parent | 5f98566ac215842a0fbe76f8f301fcfc82105e18 (diff) | |
| download | cmd2-git-28ad283e1bf5eabb9377139db47985bb69d754ee.tar.gz | |
fixed paren bug in terminatorPattern resultsName
Diffstat (limited to 'cmd2.py')
| -rwxr-xr-x | cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 + '#$-_~{},.!:\\/')
|
