From 51cfa569e379f84b3418db0971a71b1ef575a42b Mon Sep 17 00:00:00 2001
From: Beomsoo Kim <beoms424@gmail.com>
Date: Thu, 5 Dec 2024 03:30:51 +0900
Subject: =?UTF-8?q?gh-127552:=20Remove=20comment=20questioning=204-digit?=
 =?UTF-8?q?=20restriction=20for=20=E2=80=98Y=E2=80=99=20in=20datetime.strp?=
 =?UTF-8?q?time=20patterns=20(#127590)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The code has required 4 digits for the year since its inclusion in the stdlib in 2002 (over 22 years ago as of this commit).
---
 Lib/_strptime.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Lib/_strptime.py b/Lib/_strptime.py
index 5f4d247..e6e2359 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -301,8 +301,6 @@ class TimeRE(dict):
             'V': r"(?P<V>5[0-3]|0[1-9]|[1-4]\d|\d)",
             # W is set below by using 'U'
             'y': r"(?P<y>\d\d)",
-            #XXX: Does 'Y' need to worry about having less or more than
-            #     4 digits?
             'Y': r"(?P<Y>\d\d\d\d)",
             'z': r"(?P<z>[+-]\d\d:?[0-5]\d(:?[0-5]\d(\.\d{1,6})?)?|(?-i:Z))",
             'A': self.__seqToRE(self.locale_time.f_weekday, 'A'),
-- 
cgit v0.12