From 89da349b7be56000e4b0efbe11ec4958af691b42 Mon Sep 17 00:00:00 2001 From: Alexander Belopolsky Date: Mon, 2 May 2011 13:14:24 -0400 Subject: Issue #11930: Remove year >= 1000 limitation from datetime.strftime. Patch by Victor Stinner. --- Lib/datetime.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Lib/datetime.py') diff --git a/Lib/datetime.py b/Lib/datetime.py index 1ae7cb5305..1f8c8f79bd 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -172,10 +172,6 @@ def _format_time(hh, mm, ss, us): # Correctly substitute for %z and %Z escapes in strftime formats. def _wrap_strftime(object, format, timetuple): - year = timetuple[0] - if year < 1000: - raise ValueError("year=%d is before 1000; the datetime strftime() " - "methods require year >= 1000" % year) # Don't call utcoffset() or tzname() unless actually needed. freplace = None # the string to use for %f zreplace = None # the string to use for %z -- cgit v1.2.1