diff options
author | Petri Lehtinen <petri@digip.org> | 2012-02-09 19:09:03 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2012-02-09 19:09:03 (GMT) |
commit | bc35bebb458c6d3ad74adaf0d75f5156ab89fec9 (patch) | |
tree | 727e472a4ba702f48fb42d4b7246edc529d1aa67 /Doc/includes | |
parent | f0f9679d5ce6b65f4b41f1c42b24c6ab43923a41 (diff) | |
download | cpython-bc35bebb458c6d3ad74adaf0d75f5156ab89fec9.zip cpython-bc35bebb458c6d3ad74adaf0d75f5156ab89fec9.tar.gz cpython-bc35bebb458c6d3ad74adaf0d75f5156ab89fec9.tar.bz2 |
Undocument and clean up sqlite3.OptimizedUnicode
Closes #13921.
Diffstat (limited to 'Doc/includes')
-rw-r--r-- | Doc/includes/sqlite3/text_factory.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Doc/includes/sqlite3/text_factory.py b/Doc/includes/sqlite3/text_factory.py index 22c2970..bdffd36 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 |