File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -832,10 +832,13 @@ The following attribute and methods should only be used by classes derived from
832
832
errors. It will be called automatically by the :class: `OpenerDirector ` getting
833
833
the error, and should not normally be called in other circumstances.
834
834
835
- *req * will be a :class: `Request ` object, *fp * will be a file-like object with
836
- the HTTP error body, *code * will be the three-digit code of the error, *msg *
837
- will be the user-visible explanation of the code and *hdrs * will be a mapping
838
- object with the headers of the error.
835
+ :class: `OpenerDirector ` will call this method with five positional arguments:
836
+
837
+ 1. a :class: `Request ` object,
838
+ #. a file-like object with the HTTP error body,
839
+ #. the three-digit code of the error, as a string,
840
+ #. the user-visible explanation of the code, as as string, and
841
+ #. the headers of the error, as a mapping object.
839
842
840
843
Return values and exceptions raised should be the same as those of
841
844
:func: `urlopen `.
You can’t perform that action at this time.
0 commit comments