diff cmd2.py @ 347:432ccab7c6c8

going to try moving output redirection to outside precmd, postcmd hooks
author catherine@Drou
date Tue, 16 Feb 2010 16:33:47 -0500
parents 49dd1ce6cfd6
children 09145e5d7c26
line wrap: on
line diff
--- a/cmd2.py	Tue Feb 16 15:47:17 2010 -0500
+++ b/cmd2.py	Tue Feb 16 16:33:47 2010 -0500
@@ -759,6 +759,8 @@
         This (`cmd2`) version of `onecmd` already override's `cmd`'s `onecmd`.
 
         """
+        # TODO: output from precmd and postcmd goes untrapped... and I don't
+        # know how to fix it...
         if not line:
             return self.emptyline()
         if not pyparsing.Or(self.commentGrammars).setParseAction(lambda x: '').transformString(line):