[conduit] set text factory to stop unicode errors
- From: John Stowers <jstowers src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [conduit] set text factory to stop unicode errors
- Date: Fri, 20 Nov 2009 15:34:29 +0000 (UTC)
commit 9ac3d372ec8d771dc2409f1d1e5526f2c08efb92
Author: John Stowers <john stowers gmail com>
Date: Fri Nov 20 16:34:17 2009 +0100
set text factory to stop unicode errors
conduit/Database.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/conduit/Database.py b/conduit/Database.py
index b5d1b78..4dda6d2 100755
--- a/conduit/Database.py
+++ b/conduit/Database.py
@@ -134,6 +134,7 @@ class GenericDB(gobject.GObject):
else:
self.db = sqlite.connect(self.filename)
self.db.isolation_level = self.options.get("isolation_level",None)
+ self.db.text_factory = str
if self.options.get("row_by_name",False) == True:
self.db.row_factory = sqlite.Row
self.cur = self.db.cursor()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]