From bc35bebb458c6d3ad74adaf0d75f5156ab89fec9 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Thu, 9 Feb 2012 21:09:03 +0200 Subject: Undocument and clean up sqlite3.OptimizedUnicode Closes #13921. --- Doc/includes/sqlite3/text_factory.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'Doc/includes') diff --git a/Doc/includes/sqlite3/text_factory.py b/Doc/includes/sqlite3/text_factory.py index 22c2970086..bdffd36051 100644 --- a/Doc/includes/sqlite3/text_factory.py +++ b/Doc/includes/sqlite3/text_factory.py @@ -30,14 +30,3 @@ cur.execute("select ?", ("this is latin1 and would normally create errors" + "\xe4\xf6\xfc".encode("latin1"),)) row = cur.fetchone() assert type(row[0]) == str - -# sqlite3 offers a built-in optimized text_factory that will return bytestring -# objects, if the data is in ASCII only, and otherwise return unicode objects -con.text_factory = sqlite3.OptimizedUnicode -cur.execute("select ?", (AUSTRIA,)) -row = cur.fetchone() -assert type(row[0]) == str - -cur.execute("select ?", ("Germany",)) -row = cur.fetchone() -assert type(row[0]) == str -- cgit v1.2.1