code: def commitreturn(self, cursor, qstring, vals=()):
      "careful: don't pass cursor (it's from decorator)"
      cursor.execute(qstring, vals)
      return cursor.fetchall()[0f commitreturn(self, cursor, qstring, vals=()):
      "careful: don't pass cursor (it's from decorator)"
      cursor.execute(qstring, vals)
      return cursor.fetchall()[0]
docs: careful: don't pass cursor (it's from decorator)