Skip to content

Commit 2c11e23

Browse files
andresdelfinoterryjreedy
authored andcommitted
[2.7] bpo-33885: Replace "hook function" with "callable" (GH-7765). (#7885)
(cherry picked from commit c45cb47) Co-authored-by: Andrés Delfino <[email protected]>
1 parent 3e3157b commit 2c11e23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/urllib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ High-level interface
166166

167167
The second argument, if present, specifies the file location to copy to (if
168168
absent, the location will be a tempfile with a generated name). The third
169-
argument, if present, is a hook function that will be called once on
169+
argument, if present, is a callable that will be called once on
170170
establishment of the network connection and once after each block read
171-
thereafter. The hook will be passed three arguments; a count of blocks
171+
thereafter. The callable will be passed three arguments; a count of blocks
172172
transferred so far, a block size in bytes, and the total size of the file. The
173173
third argument may be ``-1`` on older FTP servers which do not return a file
174174
size in response to a retrieval request.

0 commit comments

Comments
 (0)