Author: Ronan Lamy <[email protected]>
Branch: py3.6
Changeset: r97123:adf1da3800af
Date: 2019-08-09 16:27 +0100
http://bitbucket.org/pypy/pypy/changeset/adf1da3800af/

Log:    Don't ignore fold parameter in (date,)time.replace()

diff --git a/lib-python/3/datetime.py b/lib-python/3/datetime.py
--- a/lib-python/3/datetime.py
+++ b/lib-python/3/datetime.py
@@ -1347,8 +1347,8 @@
             tzinfo = self.tzinfo
         if fold is None:
             fold = self._fold
-        return time.__new__(type(self),
-                            hour, minute, second, microsecond, tzinfo)
+        return time.__new__(
+            type(self), hour, minute, second, microsecond, tzinfo, fold=fold)
 
     # Pickle support.
 
@@ -1647,8 +1647,9 @@
             tzinfo = self.tzinfo
         if fold is None:
             fold = self.fold
-        return datetime.__new__(type(self), year, month, day, hour, minute,
-                                second, microsecond, tzinfo)
+        return datetime.__new__(
+            type(self), year, month, day, hour, minute, second, microsecond,
+            tzinfo, fold=fold)
 
     def _local_timezone(self):
         if self.tzinfo is None:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to