Mercurial > python-cmd2
comparison cmd2.py @ 293:bbc339f3ddeb
no longer attaching .parser to ParsedString
author | catherine@bothari |
---|---|
date | Fri, 22 Jan 2010 04:42:28 -0500 |
parents | 23cf05c6276c |
children | e7c89e34b39b |
comparison
equal
deleted
inserted
replaced
292:23cf05c6276c | 293:bbc339f3ddeb |
---|---|
640 result['raw'] = raw | 640 result['raw'] = raw |
641 result['clean'] = self.commentGrammars.transformString(result.args) # oh no, strips ls box/* | 641 result['clean'] = self.commentGrammars.transformString(result.args) # oh no, strips ls box/* |
642 result['expanded'] = s | 642 result['expanded'] = s |
643 p = ParsedString(result.clean) | 643 p = ParsedString(result.clean) |
644 p.parsed = result | 644 p.parsed = result |
645 p.parser = self.parsed | |
646 for (key, val) in kwargs.items(): | 645 for (key, val) in kwargs.items(): |
647 p.parsed[key] = val | 646 p.parsed[key] = val |
648 return p | 647 return p |
649 | 648 |
650 def postparsing_precmd(self, statement): | 649 def postparsing_precmd(self, statement): |