GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • Modules
    • _datetimemodule.c
  • configure.ac
  • configure
  • pyconfig.h.in
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Modules/_datetimemodule.c‎

Copy file name to clipboardExpand all lines: Modules/_datetimemodule.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
19341934
}
19351935
replacement = freplacement;
19361936
}
1937-
#ifdef Py_NORMALIZE_CENTURY
1937+
#ifdef _Py_NORMALIZE_CENTURY
19381938
else if (ch == 'Y' || ch == 'G'
19391939
|| ch == 'F' || ch == 'C'
19401940
) {
Collapse file

‎configure‎

Copy file name to clipboardExpand all lines: configure
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎configure.ac‎

Copy file name to clipboardExpand all lines: configure.ac
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6803,7 +6803,7 @@ int main(void)
68036803
[ac_cv_normalize_century=yes])])
68046804
if test "$ac_cv_normalize_century" = yes
68056805
then
6806-
AC_DEFINE([Py_NORMALIZE_CENTURY], [1],
6806+
AC_DEFINE([_Py_NORMALIZE_CENTURY], [1],
68076807
[Define if year with century should be normalized for strftime.])
68086808
fi
68096809

Collapse file

‎pyconfig.h.in‎

Copy file name to clipboardExpand all lines: pyconfig.h.in
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,9 +1737,6 @@
17371737
SipHash13: 3, externally defined: 0 */
17381738
#undef Py_HASH_ALGORITHM
17391739

1740-
/* Define if year with century should be normalized for strftime. */
1741-
#undef Py_NORMALIZE_CENTURY
1742-
17431740
/* Define if you want to enable remote debugging support. */
17441741
#undef Py_REMOTE_DEBUG
17451742

@@ -2026,6 +2023,9 @@
20262023
/* HACL* library can compile SIMD256 implementations */
20272024
#undef _Py_HACL_CAN_COMPILE_VEC256
20282025

2026+
/* Define if year with century should be normalized for strftime. */
2027+
#undef _Py_NORMALIZE_CENTURY
2028+
20292029
/* Define to force use of thread-safe errno, h_errno, and other functions */
20302030
#undef _REENTRANT
20312031

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.