diff options
author | Andrés Delfino <adelfino@gmail.com> | 2018-06-24 02:23:50 (GMT) |
---|---|---|
committer | Senthil Kumaran <skumaran@gatech.edu> | 2018-06-24 02:23:50 (GMT) |
commit | 0ba9a0b7d19da8b4bd3c13b358d3fd2a5ad16f09 (patch) | |
tree | d9c7434cf0feb6b57e684acbf4400afd1605b0d7 /Doc | |
parent | 5ae70f66ff1949eec35ff207c97cfe572c4e74c8 (diff) | |
download | cpython-0ba9a0b7d19da8b4bd3c13b358d3fd2a5ad16f09.zip cpython-0ba9a0b7d19da8b4bd3c13b358d3fd2a5ad16f09.tar.gz cpython-0ba9a0b7d19da8b4bd3c13b358d3fd2a5ad16f09.tar.bz2 |
[master] bpo-33885: Replace "hook function" with "callable" (GH-7765) (#7886)
(cherry picked from commit c45cb479074b5d25f0d382d3109f527520a9f03c)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/urllib.request.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index b7116fa..0a9d9da 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -1339,9 +1339,9 @@ some point in the future. The second argument, if present, specifies the file location to copy to (if absent, the location will be a tempfile with a generated name). The third - argument, if present, is a hook function that will be called once on + argument, if present, is a callable that will be called once on establishment of the network connection and once after each block read - thereafter. The hook will be passed three arguments; a count of blocks + thereafter. The callable will be passed three arguments; a count of blocks transferred so far, a block size in bytes, and the total size of the file. The third argument may be ``-1`` on older FTP servers which do not return a file size in response to a retrieval request. |