mirror of
https://github.com/python/cpython.git
synced 2025-10-19 07:53:46 +00:00
Improve the comment in URLError (#139874)
Clarify that it It overrides `__init__` and `__str__`.
This commit is contained in:
parent
f262297d52
commit
c50d794c7b
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
class URLError(OSError):
|
||||
# URLError is a sub-type of OSError, but it doesn't share any of
|
||||
# the implementation. need to override __init__ and __str__.
|
||||
# the implementation. It overrides __init__ and __str__.
|
||||
# It sets self.args for compatibility with other OSError
|
||||
# subclasses, but args doesn't have the typical format with errno in
|
||||
# slot 0 and strerror in slot 1. This may be better than nothing.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue