Fixed an error finding the end of month in the __get_month_spec method of the Period utility.

This commit is contained in:
依瑪貓 2023-03-05 12:06:16 +08:00
parent 14b871b57a
commit 32c27d7c07

View File

@ -176,7 +176,7 @@ class Period:
:return: The period specification as a month range.
:raise ValueError: The period is not a month range.
"""
if self.start.day != 1 or self.end != month_end(self.end):
if self.start.day != 1 or self.end != _month_end(self.end):
raise ValueError
if self.start.year == self.end.year \
and self.start.month == self.end.month: