From 00f22e8cc234aa52ec1f28094a170d7b87d0d08f Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Mon, 16 May 2022 19:52:08 +0200 Subject: gh-92547: Remove deprecated sqlite3 features (#92548) The following sqlite3 features were deprecated in 3.10, scheduled for removal in 3.12: - sqlite3.OptimizedUnicode (gh-23163) - sqlite3.enable_shared_cache (gh-24008) Co-authored-by: Jelle Zijlstra Signed-off-by: Erlend E. Aasland --- Lib/sqlite3/__init__.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Lib/sqlite3/__init__.py') diff --git a/Lib/sqlite3/__init__.py b/Lib/sqlite3/__init__.py index 5a2dbd360f..34a9c047dd 100644 --- a/Lib/sqlite3/__init__.py +++ b/Lib/sqlite3/__init__.py @@ -55,17 +55,3 @@ The sqlite3 module is written by Gerhard Häring . """ from sqlite3.dbapi2 import * - - -# bpo-42264: OptimizedUnicode was deprecated in Python 3.10. It's scheduled -# for removal in Python 3.12. -def __getattr__(name): - if name == "OptimizedUnicode": - import warnings - msg = (""" - 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 - raise AttributeError(f"module 'sqlite3' has no attribute '{name}'") -- cgit v1.2.1