changeset 232:c8b8477ca549

debugging default
author catherine@dellzilla
date Mon, 23 Mar 2009 17:08:18 -0400
parents 18bf83a77e0e
children d2cc9a090b7f
files cmd2.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Mon Mar 23 12:07:31 2009 -0400
+++ b/cmd2.py	Mon Mar 23 17:08:18 2009 -0400
@@ -594,8 +594,7 @@
             except AttributeError:
                 func = None
                 if self.abbrev:   # accept shortened versions of commands
-                    funcs = [func for (fname, func) in inspect.getmembers(
-                                                       self, inspect.ismethod) 
+                    funcs = [f for (fname, function) in inspect.getmembers(self, inspect.ismethod) 
                              if fname.startswith('do_' + statement.parsed.command)]
                     if len(funcs) == 1:
                         func = funcs[0]