Skip to content

Commit c50d794

Browse files
Improve the comment in URLError (#139874)
Clarify that it It overrides `__init__` and `__str__`.
1 parent f262297 commit c50d794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/urllib/error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class URLError(OSError):
2020
# URLError is a sub-type of OSError, but it doesn't share any of
21-
# the implementation. need to override __init__ and __str__.
21+
# the implementation. It overrides __init__ and __str__.
2222
# It sets self.args for compatibility with other OSError
2323
# subclasses, but args doesn't have the typical format with errno in
2424
# slot 0 and strerror in slot 1. This may be better than nothing.

0 commit comments

Comments
 (0)