From 06988bb196d62776f230198a2a369548932d590d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9F=93?= <56108982+XR-stb@users.noreply.github.com> Date: Thu, 25 May 2023 16:45:48 +0800 Subject: [PATCH] Update datetime.py --- tests/datetime.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/datetime.py b/tests/datetime.py index 110fc205..869bda76 100644 --- a/tests/datetime.py +++ b/tests/datetime.py @@ -55,9 +55,7 @@ def _ymd2ord(year, month, day): assert 1 <= month <= 12, 'month must be in 1..12' dim = _days_in_month(year, month) assert 1 <= day <= dim, ('day must be in 1..%d' % dim) - return (_days_before_year(year) + - _days_before_month(year, month) + - day) + return (_days_before_year(year) + _days_before_month(year, month) + day) _DI400Y = _days_before_year(401) # number of days in 400 years _DI100Y = _days_before_year(101) # " " " " 100 "