From bb5c9b164809166285064cf5862f73db58472a56 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 5 Aug 2014 10:43:27 +0200 Subject: [PATCH] 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. --- plugins/Karma/plugin.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/Karma/plugin.py b/plugins/Karma/plugin.py index eb6c177aa..0fb169fb1 100644 --- a/plugins/Karma/plugin.py +++ b/plugins/Karma/plugin.py @@ -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 (