]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Delete outdated paragraph about OptimizedUnicode again
authorBerker Peksag <berker.peksag@gmail.com>
Tue, 14 Jun 2016 09:51:07 +0000 (12:51 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Tue, 14 Jun 2016 09:51:07 +0000 (12:51 +0300)
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.

Doc/library/sqlite3.rst

index ae4c7c49ccf201c15ed50e14fe5fcd1ec889d86e..605d8d36b7b962713c6f9ad5ac52f9ce1830e451 100644 (file)
@@ -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.