Skip to content

Commit cfc7a7c

Browse files
committed
Copy updated urllib from CPython 3.8.3.
1 parent 9b48296 commit cfc7a7c

File tree

4 files changed

+386
-182
lines changed

4 files changed

+386
-182
lines changed

Lib/urllib/error.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@
1616
__all__ = ['URLError', 'HTTPError', 'ContentTooShortError']
1717

1818

19-
# do these error classes make sense?
20-
# make sure all of the OSError stuff is overridden. we just want to be
21-
# subtypes.
22-
2319
class URLError(OSError):
2420
# URLError is a sub-type of OSError, but it doesn't share any of
2521
# the implementation. need to override __init__ and __str__.
26-
# It sets self.args for compatibility with other EnvironmentError
22+
# It sets self.args for compatibility with other OSError
2723
# subclasses, but args doesn't have the typical format with errno in
2824
# slot 0 and strerror in slot 1. This may be better than nothing.
2925
def __init__(self, reason, filename=None):

0 commit comments

Comments
 (0)