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 @@ -784,10 +784,13 @@ The following attribute and methods should only be used by classes derived from
784
784
errors. It will be called automatically by the :class: `OpenerDirector ` getting
785
785
the error, and should not normally be called in other circumstances.
786
786
787
- *req * will be a :class: `Request ` object, *fp * will be a file-like object with
788
- the HTTP error body, *code * will be the three-digit code of the error, *msg *
789
- will be the user-visible explanation of the code and *hdrs * will be a mapping
790
- object with the headers of the error.
787
+ :class: `OpenerDirector ` will call this method with five positional arguments:
788
+
789
+ 1. a :class: `Request ` object,
790
+ #. a file-like object with the HTTP error body,
791
+ #. the three-digit code of the error, as a string,
792
+ #. the user-visible explanation of the code, as as string, and
793
+ #. the headers of the error, as a mapping object.
791
794
792
795
Return values and exceptions raised should be the same as those of
793
796
:func: `urlopen `.
You can’t perform that action at this time.
0 commit comments