]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Sun, 27 Dec 2020 22:35:17 +0000 (23:35 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Dec 2020 22:35:17 +0000 (22:35 +0000)
The `pages` argument default value now reflects the implementation.

Doc/library/sqlite3.rst

index c36648775a615ee0d1c0de69b8183de3737f8eac..950df60b2027defae00649020a6053936bfc1235 100644 (file)
@@ -546,7 +546,7 @@ Connection Objects
          con.close()
 
 
-   .. method:: backup(target, *, pages=0, progress=None, name="main", sleep=0.250)
+   .. method:: backup(target, *, pages=-1, progress=None, name="main", sleep=0.250)
 
       This method makes a backup of a SQLite database even while it's being accessed
       by other clients, or concurrently by the same connection.  The copy will be