use normal string instead of unicode for python v3.2 support

This commit is contained in:
Alan Hamlett 2014-06-06 12:56:32 -05:00
parent f1f57561c4
commit 4476d0401d

View file

@ -87,9 +87,9 @@ class Queue(object):
clauses.append('{0} IS NULL'.format(row_name)) clauses.append('{0} IS NULL'.format(row_name))
index += 1 index += 1
if len(values) > 0: if len(values) > 0:
c.execute('DELETE FROM action WHERE {0}'.format(u' AND '.join(clauses)), values) c.execute('DELETE FROM action WHERE {0}'.format(' AND '.join(clauses)), values)
else: else:
c.execute('DELETE FROM action WHERE {0}'.format(u' AND '.join(clauses))) c.execute('DELETE FROM action WHERE {0}'.format(' AND '.join(clauses)))
conn.commit() conn.commit()
if row is not None: if row is not None:
action = { action = {