comparison shelltools/query-pr/query.py @ 51:ef6d572c4e1e

switch to python3 style print()
author David A. Holland
date Sat, 02 Apr 2022 18:14:40 -0400
parents bb0ece71355e
children c0be30249ffe
comparison
equal deleted inserted replaced
50:bb0ece71355e 51:ef6d572c4e1e
244 dblink.close() 244 dblink.close()
245 dblink = None 245 dblink = None
246 # end closedb 246 # end closedb
247 247
248 def querydb(qtext, args): 248 def querydb(qtext, args):
249 print "Executing this query:" 249 print("Executing this query:")
250 print qtext 250 print(qtext)
251 print "Args are:" 251 print("Args are:")
252 print args 252 print(args)
253 253
254 cursor = dblink.cursor() 254 cursor = dblink.cursor()
255 cursor.execute(qtext, args) 255 cursor.execute(qtext, args)
256 result = cursor.fetchall() 256 result = cursor.fetchall()
257 cursor.close() 257 cursor.close()
489 def printheader(self, row): 489 def printheader(self, row):
490 # nothing 490 # nothing
491 pass 491 pass
492 def printrow(self, row): 492 def printrow(self, row):
493 # XXX 493 # XXX
494 print row 494 print(row)
495 def printfooter(self, row): 495 def printfooter(self, row):
496 # nothing 496 # nothing
497 pass 497 pass
498 # end class PrintText 498 # end class PrintText
499 499