Skip to content

Commit 48b13f0

Browse files
committed
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.
1 parent 8e6d09c commit 48b13f0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Doc/library/sqlite3.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,6 @@ Connection Objects
489489
:mod:`sqlite3` module will return Unicode objects for ``TEXT``. If you want to
490490
return bytestrings instead, you can set it to :class:`bytes`.
491491

492-
For efficiency reasons, there's also a way to return :class:`str` objects
493-
only for non-ASCII data, and :class:`bytes` otherwise. To activate it, set
494-
this attribute to :const:`sqlite3.OptimizedUnicode`.
495-
496492
You can also set it to any other callable that accepts a single bytestring
497493
parameter and returns the resulting object.
498494

0 commit comments

Comments
 (0)