From 0f4964535cb81c12303dd103c4bdba4891c99c2c Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Thu, 3 Nov 2022 21:46:07 +0000 Subject: [PATCH] Removed obsolete references to pysqlite. Obsolete since 1b06d5e6f6be8e567ce78c892c485af039830d7d. --- django/db/backends/sqlite3/base.py | 4 ++-- django/db/backends/sqlite3/operations.py | 4 +--- docs/releases/1.4.txt | 4 ++-- docs/spelling_wordlist | 1 - 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index feae360567..e541a6cbb0 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -158,7 +158,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): # between multiple threads. The safe-guarding will be handled at a # higher level by the `BaseDatabaseWrapper.allow_thread_sharing` # property. This is necessary as the shareability is disabled by - # default in pysqlite and it cannot be changed once a connection is + # default in sqlite3 and it cannot be changed once a connection is # opened. if "check_same_thread" in kwargs and kwargs["check_same_thread"]: warnings.warn( @@ -357,7 +357,7 @@ FORMAT_QMARK_REGEX = _lazy_re_compile(r"(?statement, parameters, allow_8bit_chars - # ); + # bind_parameters(state, self->statement, parameters); # Unfortunately there is no way to reach self->statement from Python, # so we quote and substitute parameters manually. if params: diff --git a/docs/releases/1.4.txt b/docs/releases/1.4.txt index b3b3acda31..1c0f48eba5 100644 --- a/docs/releases/1.4.txt +++ b/docs/releases/1.4.txt @@ -900,8 +900,8 @@ object, use ``django.db.connections[DEFAULT_DB_ALIAS]`` instead. As part of this change, all underlying SQLite connections are now enabled for potential thread-sharing (by passing the ``check_same_thread=False`` attribute -to pysqlite). ``DatabaseWrapper`` however preserves the previous behavior by -disabling thread-sharing by default, so this does not affect any existing +to ``pysqlite``). ``DatabaseWrapper`` however preserves the previous behavior +by disabling thread-sharing by default, so this does not affect any existing code that purely relies on the ORM or on ``DatabaseWrapper.cursor()``. Finally, while it's now possible to pass connections between threads, Django diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index 0b9180fd35..d156047492 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -387,7 +387,6 @@ psycopg Punycode Puthraya pyformat -pysqlite pythonic qs queryset