From 47349d8c1fe545238f0dd2a680541f56acc3b3a6 Mon Sep 17 00:00:00 2001 From: Jah-yee Date: Fri, 24 Apr 2026 00:11:27 +0800 Subject: [PATCH] Fix docstring error in IllegalMonthError and remove dead URL in mro.rst --- Doc/howto/mro.rst | 3 +-- Lib/calendar.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Doc/howto/mro.rst b/Doc/howto/mro.rst index 0872bedcd3a2d3..7c7a429c2e3286 100644 --- a/Doc/howto/mro.rst +++ b/Doc/howto/mro.rst @@ -667,5 +667,4 @@ Resources .. [#] The paper *A Monotonic Superclass Linearization for Dylan*: https://doi.org/10.1145/236337.236343 -.. [#] Guido van Rossum's essay, *Unifying types and classes in Python 2.2*: - https://web.archive.org/web/20140210194412/http://www.python.org/download/releases/2.2.2/descrintro +.. [#] Guido van Rossum's essay, *Unifying types and classes in Python 2.2* diff --git a/Lib/calendar.py b/Lib/calendar.py index d80c3fd9524776..d0926375ffaa67 100644 --- a/Lib/calendar.py +++ b/Lib/calendar.py @@ -30,7 +30,7 @@ # Exceptions raised for bad input # This is trick for backward compatibility. Since 3.13, we will raise IllegalMonthError instead of # IndexError for bad month number(out of 1-12). But we can't remove IndexError for backward compatibility. -class IllegalMonthError(ValueError, IndexError): +class IllegalMonthError(ValueError): def __init__(self, month): self.month = month def __str__(self):