Mercurial > python-cmd2
comparison cmd2.py @ 426:05a44bf4b449
delete pdb
author | catherine.devlin@gmail.com |
---|---|
date | Thu, 28 Jul 2011 01:13:46 -0400 |
parents | 1c66290a4119 |
children | 3c17dae50252 |
comparison
equal
deleted
inserted
replaced
425:1c66290a4119 | 426:05a44bf4b449 |
---|---|
716 s = self.commentGrammars.transformString(s) | 716 s = self.commentGrammars.transformString(s) |
717 for (shortcut, expansion) in self.shortcuts: | 717 for (shortcut, expansion) in self.shortcuts: |
718 if s.lower().startswith(shortcut): | 718 if s.lower().startswith(shortcut): |
719 s = s.replace(shortcut, expansion + ' ', 1) | 719 s = s.replace(shortcut, expansion + ' ', 1) |
720 break | 720 break |
721 #import pdb; pdb.set_trace() | |
722 result = self.parser.parseString(s) | 721 result = self.parser.parseString(s) |
723 result['raw'] = raw | 722 result['raw'] = raw |
724 result['command'] = result.multilineCommand or result.command | 723 result['command'] = result.multilineCommand or result.command |
725 result = self.postparse(result) | 724 result = self.postparse(result) |
726 p = ParsedString(result.args) | 725 p = ParsedString(result.args) |