Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ad5821

Browse files
committed
oops, rename pymonotonic_new() to pymonotonic()
I was not supposed to commit the function with the name pymonotonic_new(). I forgot to rename it.
1 parent c3c616c commit 5ad5821

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/pytime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ _PyTime_GetSystemClockWithInfo(_PyTime_t *t, _Py_clock_info_t *info)
531531

532532

533533
static int
534-
pymonotonic_new(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
534+
pymonotonic(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
535535
{
536536
#if defined(MS_WINDOWS)
537537
ULONGLONG result;
@@ -631,7 +631,7 @@ _PyTime_t
631631
_PyTime_GetMonotonicClock(void)
632632
{
633633
_PyTime_t t;
634-
if (pymonotonic_new(&t, NULL, 0) < 0) {
634+
if (pymonotonic(&t, NULL, 0) < 0) {
635635
/* should not happen, _PyTime_Init() checked that monotonic clock at
636636
startup */
637637
assert(0);
@@ -645,7 +645,7 @@ _PyTime_GetMonotonicClock(void)
645645
int
646646
_PyTime_GetMonotonicClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
647647
{
648-
return pymonotonic_new(tp, info, 1);
648+
return pymonotonic(tp, info, 1);
649649
}
650650

651651
int

0 commit comments

Comments
 (0)