[Python-checkins] cpython (3.5): oops, rename pymonotonic_new() to pymonotonic()

victor.stinner python-checkins at python.org
Thu Sep 3 00:16:43 CEST 2015


https://hg.python.org/cpython/rev/546f02960e83
changeset: 97598:546f02960e83
branch: 3.5
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Sep 03 00:14:58 2015 +0200
summary:
 oops, rename pymonotonic_new() to pymonotonic()
I was not supposed to commit the function with the name pymonotonic_new(). I
forgot to rename it.
files:
 Python/pytime.c | 6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Python/pytime.c b/Python/pytime.c
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -531,7 +531,7 @@
 
 
 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_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 @@
 int
 _PyTime_GetMonotonicClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
 {
- return pymonotonic_new(tp, info, 1);
+ return pymonotonic(tp, info, 1);
 }
 
 int
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /