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
1 changed files with 0 additions and 1 deletions

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 (