[Python-checkins] cpython (merge 3.6 -> default): Merge 3.6
victor.stinner
python-checkins at python.org
Tue Jan 3 17:48:17 EST 2017
https://hg.python.org/cpython/rev/0ce5151fe57e
changeset: 105992:0ce5151fe57e
parent: 105990:86ddd32068a1
parent: 105991:72e48ff7b169
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Jan 03 23:47:39 2017 +0100
summary:
Merge 3.6
files:
Modules/_datetimemodule.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c
--- a/Modules/_datetimemodule.c
+++ b/Modules/_datetimemodule.c
@@ -3855,11 +3855,11 @@
{
if (self->hashcode == -1) {
PyObject *offset, *self0;
- if (DATE_GET_FOLD(self)) {
- self0 = new_time_ex2(DATE_GET_HOUR(self),
- DATE_GET_MINUTE(self),
- DATE_GET_SECOND(self),
- DATE_GET_MICROSECOND(self),
+ if (TIME_GET_FOLD(self)) {
+ self0 = new_time_ex2(TIME_GET_HOUR(self),
+ TIME_GET_MINUTE(self),
+ TIME_GET_SECOND(self),
+ TIME_GET_MICROSECOND(self),
HASTZINFO(self) ? self->tzinfo : Py_None,
0, Py_TYPE(self));
if (self0 == NULL)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list