comparison sqlpyPlus.py @ 95:84a26822e28c

was crashing on print
author catherine@cordelia
date Sun, 25 May 2008 05:31:00 -0400
parents 5df8e2477ca3
children 5e274ecfd679
comparison
equal deleted inserted replaced
94:5df8e2477ca3 95:84a26822e28c
778 'print VARNAME: Show current value of bind variable VARNAME.' 778 'print VARNAME: Show current value of bind variable VARNAME.'
779 if arg: 779 if arg:
780 if arg[0] == ':': 780 if arg[0] == ':':
781 arg = arg[1:] 781 arg = arg[1:]
782 try: 782 try:
783 self.stdout.write(self.binds[arg]+'\n') 783 self.stdout.write(str(self.binds[arg])+'\n')
784 except KeyError: 784 except KeyError:
785 self.stdout.write('No bind variable %s\n' % arg) 785 self.stdout.write('No bind variable %s\n' % arg)
786 else: 786 else:
787 for (var, val) in self.binds.items(): 787 for (var, val) in self.binds.items():
788 print ':%s = %s' % (var, val) 788 print ':%s = %s' % (var, val)