# HG changeset patch # User catherine@cordelia # Date 1208203369 14400 # Node ID bce8396ab625ff2e4f4d402443e28a7834741086 # Parent db0e1ff5e4074823875579754f44a319ce545e2a more condensation diff -r db0e1ff5e407 -r bce8396ab625 sqlpyPlus.py --- 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)