summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2020-11-17 15:55:12 (GMT)
committerGitHub <noreply@github.com>2020-11-17 15:55:12 (GMT)
commita1f401a58b213e400fbd8f0fa8dc5260a2389dab (patch)
tree8531d513ccfbe7479ffa0420d088af144d0603ac /Modules
parent296a796951032f678d063008f588ccc6958d0df1 (diff)
downloadcpython-a1f401a58b213e400fbd8f0fa8dc5260a2389dab.zip
cpython-a1f401a58b213e400fbd8f0fa8dc5260a2389dab.tar.gz
cpython-a1f401a58b213e400fbd8f0fa8dc5260a2389dab.tar.bz2
bpo-42264: Deprecate sqlite3.OptimizedUnicode (GH-23163)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/module.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index 9fdf514..372f3dd 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -412,15 +412,6 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
ADD_EXCEPTION(module, "DataError", pysqlite_DataError, pysqlite_DatabaseError);
ADD_EXCEPTION(module, "NotSupportedError", pysqlite_NotSupportedError, pysqlite_DatabaseError);
- /* In Python 2.x, setting Connection.text_factory to
- OptimizedUnicode caused Unicode objects to be returned for
- non-ASCII data and bytestrings to be returned for ASCII data.
- Now OptimizedUnicode is an alias for str, so it has no
- effect. */
- if (PyModule_AddObjectRef(module, "OptimizedUnicode", (PyObject*)&PyUnicode_Type) < 0) {
- goto error;
- }
-
/* Set integer constants */
if (add_integer_constants(module) < 0) {
goto error;