GeezerVison is showing github.com — gh-120713: Make _Py_NORMALIZE_CENTURY private (GH-135933) · python/cpython@fb170cf
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Modules/_datetimemodule.c +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1934,7 +1934,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple, |
1934 | 1934 | } |
1935 | 1935 | replacement = freplacement; |
1936 | 1936 | } |
1937 | | -#ifdef Py_NORMALIZE_CENTURY |
| 1937 | +#ifdef _Py_NORMALIZE_CENTURY |
1938 | 1938 | else if (ch == 'Y' || ch == 'G' |
1939 | 1939 | || ch == 'F' || ch == 'C' |
1940 | 1940 | ) { |
|
Collapse file
Copy file name to clipboardExpand all lines: configure +1-1Lines changed: 1 addition & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: configure.ac +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -6803,7 +6803,7 @@ int main(void) |
6803 | 6803 | [ac_cv_normalize_century=yes])]) |
6804 | 6804 | if test "$ac_cv_normalize_century" = yes |
6805 | 6805 | then |
6806 | | - AC_DEFINE([Py_NORMALIZE_CENTURY], [1], |
| 6806 | + AC_DEFINE([_Py_NORMALIZE_CENTURY], [1], |
6807 | 6807 | [Define if year with century should be normalized for strftime.]) |
6808 | 6808 | fi |
6809 | 6809 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: pyconfig.h.in +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1737 | 1737 | SipHash13: 3, externally defined: 0 */ |
1738 | 1738 | #undef Py_HASH_ALGORITHM |
1739 | 1739 |
|
1740 | | -/* Define if year with century should be normalized for strftime. */ |
1741 | | -#undef Py_NORMALIZE_CENTURY |
1742 | | - |
1743 | 1740 | /* Define if you want to enable remote debugging support. */ |
1744 | 1741 | #undef Py_REMOTE_DEBUG |
1745 | 1742 |
|
|
2026 | 2023 | /* HACL* library can compile SIMD256 implementations */ |
2027 | 2024 | #undef _Py_HACL_CAN_COMPILE_VEC256 |
2028 | 2025 |
|
| 2026 | +/* Define if year with century should be normalized for strftime. */ |
| 2027 | +#undef _Py_NORMALIZE_CENTURY |
| 2028 | + |
2029 | 2029 | /* Define to force use of thread-safe errno, h_errno, and other functions */ |
2030 | 2030 | #undef _REENTRANT |
2031 | 2031 |
|
|