summaryrefslogtreecommitdiffstats
path: root/Lib/datetime.py
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-05-02 17:14:24 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-05-02 17:14:24 (GMT)
commit89da349b7be56000e4b0efbe11ec4958af691b42 (patch)
tree0f6a529fb790429d25c0eb73c7c66c8836642dc3 /Lib/datetime.py
parent9d8c3b7cef1f235e92b018924ca21e0d1a49efd7 (diff)
downloadcpython-89da349b7be56000e4b0efbe11ec4958af691b42.zip
cpython-89da349b7be56000e4b0efbe11ec4958af691b42.tar.gz
cpython-89da349b7be56000e4b0efbe11ec4958af691b42.tar.bz2
Issue #11930: Remove year >= 1000 limitation from datetime.strftime.
Patch by Victor Stinner.
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r--Lib/datetime.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py
index 1ae7cb5..1f8c8f7 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