Skip to content

Commit 0ba9a0b

Browse files
andresdelfinoorsenthil
authored andcommitted
[master] bpo-33885: Replace "hook function" with "callable" (GH-7765) (#7886)
(cherry picked from commit c45cb47) Co-authored-by: Andrés Delfino <[email protected]>
1 parent 5ae70f6 commit 0ba9a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/urllib.request.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,9 +1339,9 @@ some point in the future.
13391339

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

0 commit comments

Comments
 (0)