summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-06-14 09:51:07 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-06-14 09:51:07 (GMT)
commit48b13f042746d4c8bf369877e3f40c3e0bbee1b7 (patch)
tree405bc7a4d099174f145368ebd429b38957e3ac3f
parent8e6d09c1ccb5fed0d1b074aae9325f41fed4705d (diff)
downloadcpython-48b13f042746d4c8bf369877e3f40c3e0bbee1b7.zip
cpython-48b13f042746d4c8bf369877e3f40c3e0bbee1b7.tar.gz
cpython-48b13f042746d4c8bf369877e3f40c3e0bbee1b7.tar.bz2
Delete outdated paragraph about OptimizedUnicode again
sqlite3.OptimizedUnicode is an alias for str in Python 3 and its behavior is already tested in CheckOptimizedUnicode in Lib/sqlite3/test/factory.py. sqlite3.OptimizedUnicode was undocumented in 0fc10a33eb4c and probably added back with the result of a bad merge.
-rw-r--r--Doc/library/sqlite3.rst4
1 files changed, 0 insertions, 4 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index ae4c7c4..605d8d3 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -489,10 +489,6 @@ Connection Objects
:mod:`sqlite3` module will return Unicode objects for ``TEXT``. If you want to
return bytestrings instead, you can set it to :class:`bytes`.
- For efficiency reasons, there's also a way to return :class:`str` objects
- only for non-ASCII data, and :class:`bytes` otherwise. To activate it, set
- this attribute to :const:`sqlite3.OptimizedUnicode`.
-
You can also set it to any other callable that accepts a single bytestring
parameter and returns the resulting object.