diff cmd2.py @ 4:78033fd1078d

removing extra command-split
author catherine@cordelia
date Tue, 13 May 2008 09:21:43 -0400
parents 4520a1a073ff
children 47af95ad83c7
line wrap: on
line diff
--- a/cmd2.py	Tue May 13 08:29:18 2008 -0400
+++ b/cmd2.py	Tue May 13 09:21:43 2008 -0400
@@ -120,8 +120,6 @@
                 statement = '%s %s' % (statement, self.fileimport(statement=statement, source=redirect))
         stop = cmd.Cmd.onecmd(self, statement)
         try:
-            # unnecessary to compute command again?
-            command = statement.split(None,1)[0].lower()
             if command not in self.excludeFromHistory:
                 self.history.append(statement)
         finally: