Skip to content
Prev Previous commit
Next Next commit
Improve warning wording
  • Loading branch information
Erlend Egeberg Aasland authored Nov 5, 2020
commit 62d2e9b2f7fb4909c78cb57da078cb5094a91384
4 changes: 2 additions & 2 deletions Lib/sqlite3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def __getattr__(name):
if name == "OptimizedUnicode":
import warnings
msg = ("""
OptimizedUnicode is obsolete. You can safely remove it from your
code, as it defaults to 'str' anyway.
OptimizedUnicode is deprecated and will be removed in Python 3.12.
Since Python 3.3 it has simply been an alias for 'str'.
""")
warnings.warn(msg, DeprecationWarning, stacklevel=2)
return str
Expand Down