]> granicus.if.org Git - python/commitdiff
oops, rename pymonotonic_new() to pymonotonic()
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 2 Sep 2015 22:14:58 +0000 (00:14 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 2 Sep 2015 22:14:58 +0000 (00:14 +0200)
I was not supposed to commit the function with the name pymonotonic_new(). I
forgot to rename it.

Python/pytime.c

index e46bd42f547f918a89c9e97c0d0d1929b96a52e6..77db204489c67a1c96e94a094739db78e9dafb2b 100644 (file)
@@ -531,7 +531,7 @@ _PyTime_GetSystemClockWithInfo(_PyTime_t *t, _Py_clock_info_t *info)
 
 
 static int
-pymonotonic_new(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
+pymonotonic(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
 {
 #if defined(MS_WINDOWS)
     ULONGLONG result;
@@ -631,7 +631,7 @@ _PyTime_t
 _PyTime_GetMonotonicClock(void)
 {
     _PyTime_t t;
-    if (pymonotonic_new(&t, NULL, 0) < 0) {
+    if (pymonotonic(&t, NULL, 0) < 0) {
         /* should not happen, _PyTime_Init() checked that monotonic clock at
            startup */
         assert(0);
@@ -645,7 +645,7 @@ _PyTime_GetMonotonicClock(void)
 int
 _PyTime_GetMonotonicClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
 {
-    return pymonotonic_new(tp, info, 1);
+    return pymonotonic(tp, info, 1);
 }
 
 int