]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 6 Jan 2021 00:23:37 +0000 (16:23 -0800)
committerGitHub <noreply@github.com>
Wed, 6 Jan 2021 00:23:37 +0000 (02:23 +0200)
The `pages` argument default value now reflects the implementation.
(cherry picked from commit abba83b4b91f78dc556dc0b7700ecb46cba22c01)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Doc/library/sqlite3.rst

index 9459f9175827b08dd40402b58563d67f84b6d576..e2e7312c2773577d2b2e99d2d07812d1ab294f5e 100644 (file)
@@ -545,7 +545,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