* add libb2 as dep * remove "-Wl,--large-address-aware", default now via makepkg * remove 2to3 logic, no longer in Python
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From f0a59e4f6810c6ce3241f986f1b7bd9dbfdeaf70 Mon Sep 17 00:00:00 2001
|
|
From: Christoph Reiter <reiter.christoph@gmail.com>
|
|
Date: Fri, 23 Jul 2021 08:52:50 +0200
|
|
Subject: [PATCH 054/N] time: fix strftime not raising for invalid year
|
|
values
|
|
|
|
It's crt specific and not compiler specific.
|
|
This fixes a test case in test_time
|
|
---
|
|
Modules/timemodule.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
|
|
index 49626d3..c77fe7c 100644
|
|
--- a/Modules/timemodule.c
|
|
+++ b/Modules/timemodule.c
|
|
@@ -892,7 +892,7 @@ time_strftime(PyObject *module, PyObject *args)
|
|
//
|
|
// Android works with negative years on the emulator, but fails on some
|
|
// physical devices (#123017).
|
|
-#if defined(_MSC_VER) || (defined(__sun) && defined(__SVR4)) || defined(_AIX) \
|
|
+#if defined(MS_WINDOWS) || (defined(__sun) && defined(__SVR4)) || defined(_AIX) \
|
|
|| defined(__VXWORKS__) || defined(__ANDROID__)
|
|
if (buf.tm_year + 1900 < 1 || 9999 < buf.tm_year + 1900) {
|
|
PyErr_SetString(PyExc_ValueError,
|