changeset 48:34fb41095451

avoiding do_load overload
author catherine.devlin@gmail.com
date Tue, 03 Jun 2008 15:26:54 -0400
parents 927bc07467de
children 8926b72d828e
files cmd2.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Tue Jun 03 15:04:40 2008 -0400
+++ b/cmd2.py	Tue Jun 03 15:26:54 2008 -0400
@@ -490,7 +490,7 @@
             f.close()        
                 
         os.system('%s %s' % (self.editor, filename))
-        self.do_load(filename)
+        self.do__load(filename)
     do_edit = do_ed
     
     def do_save(self, fname=None):
@@ -528,7 +528,8 @@
         self.stdin.close()
         keepstate.restore()
         self.lastcmd = ''
-        return (stop == self._STOP_AND_EXIT) and self._STOP_AND_EXIT
+        return (stop == self._STOP_AND_EXIT) and self._STOP_AND_EXIT    
+    do__load = do_load  # avoid an unfortunate legacy use of do_load from sqlpython
     
     def do_run(self, arg):
         """run [arg]: re-runs an earlier command