Karma: Fix Pypy3 support.

Setting db.text_factory to str gets the repr() of a bytes object, while the default text factory seems to work well on any Python version.
This commit is contained in:
Valentin Lorentz 2014-08-05 10:43:27 +02:00
parent 3d4f6502d8
commit bb5c9b1648

View File

@ -62,7 +62,6 @@ class SqliteKarmaDB(object):
self.dbs[filename] = db
return db
db = sqlite3.connect(filename, check_same_thread=False)
db.text_factory = str
self.dbs[filename] = db
cursor = db.cursor()
cursor.execute("""CREATE TABLE karma (