def tquery(query, con=None, cur=None):
 res = sql.execute(query, con=con, cur=cur).fetchall()
 if (res is None):
  return None
 else:
  return list(res)

def tquery ( query , con = None , cur = None ) : res = sql . execute ( query , con = con , cur = cur ) . fetchall ( ) if ( res is None ) : return None else : return list ( res )
replace removed sql .