https://github.com/python/cpython/commit/d24bed5ba0c60bbcc1662ae51071067799862fe0
commit: d24bed5ba0c60bbcc1662ae51071067799862fe0
branch: main
author: Victor Stinner <[email protected]>
committer: encukou <[email protected]>
date: 2024-02-20T14:35:41+01:00
summary:

gh-110850: PyTime_Time() return 0 on success (GH-115713)

Thanks!

files:
M Python/pytime.c

diff --git a/Python/pytime.c b/Python/pytime.c
index fb0ed85c541e68..8b3c7128aae3bc 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -1053,7 +1053,7 @@ PyTime_Time(PyTime_t *result)
         *result = 0;
         return -1;
     }
-    return 1;
+    return 0;
 }
 
 int

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to