diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-09-13 18:16:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 18:16:39 (GMT) |
commit | bf50b0e80a8a0d651af2f953b662eeadd27c7c93 (patch) | |
tree | 97a20e8e783816c12a0211eda25d148f75599af9 /Doc | |
parent | 3a150c77c31da240f1b92cab9ec74f1fa701b869 (diff) | |
download | cpython-bf50b0e80a8a0d651af2f953b662eeadd27c7c93.zip cpython-bf50b0e80a8a0d651af2f953b662eeadd27c7c93.tar.gz cpython-bf50b0e80a8a0d651af2f953b662eeadd27c7c93.tar.bz2 |
bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763) (GH-22226)
(cherry picked from commit b48389d95093c3f912549add8da339edc164bf0d)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/tempfile.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index 3a2b88c..f9421da 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -31,7 +31,7 @@ is recommended to use keyword arguments for clarity. The module defines the following user-callable items: -.. function:: TemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None, *, errors=None) +.. function:: TemporaryFile(mode='w+b', buffering=-1, encoding=None, newline=None, suffix=None, prefix=None, dir=None, *, errors=None) Return a :term:`file-like object` that can be used as a temporary storage area. The file is created securely, using the same rules as :func:`mkstemp`. It will be destroyed as soon @@ -72,7 +72,7 @@ The module defines the following user-callable items: Added *errors* parameter. -.. function:: NamedTemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None, delete=True, *, errors=None) +.. function:: NamedTemporaryFile(mode='w+b', buffering=-1, encoding=None, newline=None, suffix=None, prefix=None, dir=None, delete=True, *, errors=None) This function operates exactly as :func:`TemporaryFile` does, except that the file is guaranteed to have a visible name in the file system (on @@ -93,7 +93,7 @@ The module defines the following user-callable items: Added *errors* parameter. -.. function:: SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None, *, errors=None) +.. function:: SpooledTemporaryFile(max_size=0, mode='w+b', buffering=-1, encoding=None, newline=None, suffix=None, prefix=None, dir=None, *, errors=None) This function operates exactly as :func:`TemporaryFile` does, except that data is spooled in memory until the file size exceeds *max_size*, or |