https://github.com/python/cpython/commit/c50d794c7bb81f31d1b977e63d0faba0b926a168
commit: c50d794c7bb81f31d1b977e63d0faba0b926a168
branch: main
author: SarahPythonista <[email protected]>
committer: Mariatta <[email protected]>
date: 2025-10-14T12:31:21-07:00
summary:
Improve the comment in URLError (#139874)
Clarify that it It overrides `__init__` and `__str__`.
files:
M Lib/urllib/error.py
diff --git a/Lib/urllib/error.py b/Lib/urllib/error.py
index a9cd1ecadd63f2..beb32d0df48610 100644
--- a/Lib/urllib/error.py
+++ b/Lib/urllib/error.py
@@ -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.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]