changeset 73:bce8396ab625

more condensation
author catherine@cordelia
date Mon, 14 Apr 2008 16:02:49 -0400
parents db0e1ff5e407
children bfc81b9b99a7
files sqlpyPlus.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpyPlus.py	Mon Apr 14 16:02:20 2008 -0400
+++ b/sqlpyPlus.py	Mon Apr 14 16:02:49 2008 -0400
@@ -732,10 +732,6 @@
             arg = ' '.join(args)
         self.do_select('* from %s;%d' % (arg, nrows))
         
-    def printall(self):
-        for (var, val) in self.binds.items():
-            print ':%s = %s' % (var, val)
-        
     def do_print(self, arg):
         'print VARNAME: Show current value of bind variable VARNAME.'
         if arg:
@@ -746,7 +742,8 @@
             except KeyError:
                 self.stdout.write('No bind variable %s\n' % arg)
         else:
-            self.printall()
+            for (var, val) in self.binds.items():
+                print ':%s = %s' % (var, val)
             
     def do_setbind(self, arg):
         args = arg.split(None, 2)