]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Mar 2023 11:49:32 +0000 (04:49 -0700)
committerGitHub <noreply@github.com>
Wed, 22 Mar 2023 11:49:32 +0000 (04:49 -0700)
(cherry picked from commit c24f1f1e874c283bb11d8b9fbd661536ade19fe9)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/library/sqlite3.rst

index 509c4a8277ebc40aba4670c9fe3975aa0a45a9b1..ba2ae83642a5fd8e16a35a786b63280d52039ca5 100644 (file)
@@ -271,9 +271,9 @@ Module functions
 
    :param float timeout:
        How many seconds the connection should wait before raising
-       an exception, if the database is locked by another connection.
-       If another connection opens a transaction to modify the database,
-       it will be locked until that transaction is committed.
+       an :exc:`OperationalError` when a table is locked.
+       If another connection opens a transaction to modify a table,
+       that table will be locked until the transaction is committed.
        Default five seconds.
 
    :param int detect_types: