File tree 5 files changed +11
-9
lines changed
Filter options
5 files changed +11
-9
lines changed
Original file line number Diff line number Diff line change @@ -1403,7 +1403,8 @@ way is to instantiate one of the following classes:
1403
1403
failure, an :class: `OSError ` is automatically raised.
1404
1404
1405
1405
.. versionchanged :: 3.3
1406
- :exc: `WindowsError ` used to be raised.
1406
+ :exc: `WindowsError ` used to be raised,
1407
+ which is now an alias of :exc: `OSError `.
1407
1408
1408
1409
.. versionchanged :: 3.12
1409
1410
@@ -2088,13 +2089,14 @@ Utility functions
2088
2089
.. function :: WinError(code=None, descr=None)
2089
2090
2090
2091
Windows only: this function is probably the worst-named thing in ctypes. It
2091
- creates an instance of OSError. If *code * is not specified,
2092
+ creates an instance of :exc: ` OSError ` . If *code * is not specified,
2092
2093
``GetLastError `` is called to determine the error code. If *descr * is not
2093
2094
specified, :func: `FormatError ` is called to get a textual description of the
2094
2095
error.
2095
2096
2096
2097
.. versionchanged :: 3.3
2097
- An instance of :exc: `WindowsError ` used to be created.
2098
+ An instance of :exc: `WindowsError ` used to be created, which is now an
2099
+ alias of :exc: `OSError `.
2098
2100
2099
2101
2100
2102
.. function :: wstring_at(address, size=-1)
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ install themselves in the built-in namespace as the function :func:`!_`.
167
167
:class: `NullTranslations ` instance if *fallback * is true.
168
168
169
169
.. versionchanged :: 3.3
170
- :exc: `IOError ` used to be raised instead of :exc: `OSError `.
170
+ :exc: `IOError ` used to be raised, it is now an alias of :exc: `OSError `.
171
171
172
172
.. versionchanged :: 3.11
173
173
*codeset * parameter is removed.
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ The module defines the following exception:
44
44
cookies from a file. :exc: `LoadError ` is a subclass of :exc: `OSError `.
45
45
46
46
.. versionchanged :: 3.3
47
- LoadError was made a subclass of :exc: `OSError ` instead of
48
- :exc: `IOError `.
47
+ :exc: ` LoadError ` used to be a subtype of :exc: `IOError `, which is now an
48
+ alias of :exc: `OSError `.
49
49
50
50
51
51
The following classes are provided:
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ The following exceptions are raised by :mod:`urllib.error` as appropriate:
27
27
exception instance.
28
28
29
29
.. versionchanged :: 3.3
30
- :exc: `URLError ` has been made a subclass of :exc: `OSError ` instead
31
- of :exc: `IOError `.
30
+ :exc: `URLError ` used to be a subtype of :exc: `IOError `, which is now an
31
+ alias of :exc: `OSError `.
32
32
33
33
34
34
.. exception :: HTTPError(url, code, msg, hdrs, fp)
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ zipimporter Objects
113
113
file wasn't found.
114
114
115
115
.. versionchanged :: 3.3
116
- :exc: `IOError ` used to be raised instead of :exc: `OSError `.
116
+ :exc: `IOError ` used to be raised, it is now an alias of :exc: `OSError `.
117
117
118
118
119
119
.. method :: get_filename(fullname)
You can’t perform that action at this time.
0 commit comments