summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-03-22 04:49:46 -0700
committerGitHub <noreply@github.com>2023-03-22 04:49:46 -0700
commit9a1453b6511f8d9ac0f03d8923b269a1fad01885 (patch)
treeb249886df3c88a870bd6e6e82504f2e42d944c41
parentDocs: improve accuracy of pdb alias example (GH-102892) (diff)
downloadcpython-9a1453b6511f8d9ac0f03d8923b269a1fad01885.tar.gz
cpython-9a1453b6511f8d9ac0f03d8923b269a1fad01885.tar.bz2
cpython-9a1453b6511f8d9ac0f03d8923b269a1fad01885.zip
Docs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900)
(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>
-rw-r--r--Doc/library/sqlite3.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index b5351a8feae..cdb6f9d0e17 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -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: