def sqlquote(a):
 if isinstance(a, list):
  return _sqllist(a)
 else:
  return sqlparam(a).sqlquery()

def sqlquote ( a ) : if isinstance ( a , list ) : return _sqllist ( a ) else : return sqlparam ( a ) . sqlquery ( )
ensures a is quoted properly for use in a sql query .