Improve scope

This commit is contained in:
Erlend E. Aasland 2021-01-05 00:09:27 +01:00
parent cd11c78270
commit 97b0452608
No known key found for this signature in database
GPG Key ID: E323E17E686C7B5F
1 changed files with 1 additions and 1 deletions

View File

@ -86,8 +86,8 @@ register_adapters_and_converters()
# bpo-24464: enable_shared_cache was deprecated in Python 3.10. It's
# scheduled for removal in Python 3.12.
from _sqlite3 import enable_shared_cache as _old_enable_shared_cache
def enable_shared_cache(enable):
from _sqlite3 import enable_shared_cache as _old_enable_shared_cache
import warnings
msg = (
"enable_shared_cache is deprecated and will be removed in Python 3.12. "