mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
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:
parent
3d4f6502d8
commit
bb5c9b1648
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user