All pastes #136750 Raw Edit

Mine

public text v1 · immutable
#136750 ·published 2006-08-17 21:41 UTC
rendered paste body
numrows = int(cursor.rowcount)
if numrows == 0:
  return "no results"
else:
  values = []
  for dataR in cursor.fetchone():
    for row in dataR:
      values += [str(value) for value in row]

  return str.join('\n', values)