comparison cmd2.py @ 194:5bf878c5c0e8

drop reference to profile
author catherine@dellzilla
date Wed, 18 Feb 2009 04:26:55 -0500
parents e96877b59371
children 455ebe415d5e
comparison
equal deleted inserted replaced
193:e96877b59371 194:5bf878c5c0e8
448 """ 448 """
449 if not line: 449 if not line:
450 return self.emptyline() 450 return self.emptyline()
451 if not pyparsing.Or(self.commentGrammars).setParseAction(lambda x: '').transformString(line): 451 if not pyparsing.Or(self.commentGrammars).setParseAction(lambda x: '').transformString(line):
452 return 0 # command was empty except for comments 452 return 0 # command was empty except for comments
453 import profile
454 try: 453 try:
455 statement = self.parsed(line) 454 statement = self.parsed(line)
456 while statement.parsed.multilineCommand and (statement.parsed.terminator == ''): 455 while statement.parsed.multilineCommand and (statement.parsed.terminator == ''):
457 statement = '%s\n%s' % (statement.parsed.raw, 456 statement = '%s\n%s' % (statement.parsed.raw,
458 self.pseudo_raw_input(self.continuationPrompt)) 457 self.pseudo_raw_input(self.continuationPrompt))