Author: Barry Hart <barrywh...@yahoo.com>
Branch: 2634_datetime_timedelta_performance
Changeset: r93736:eed3086fd841
Date: 2018-01-01 08:32 -0500
http://bitbucket.org/pypy/pypy/changeset/eed3086fd841/

Log:    Use new construction method in _from_timestamp

diff --git a/lib_pypy/datetime.py b/lib_pypy/datetime.py
--- a/lib_pypy/datetime.py
+++ b/lib_pypy/datetime.py
@@ -1497,7 +1497,7 @@
             us = 0
         y, m, d, hh, mm, ss, weekday, jday, dst = converter(timestamp)
         ss = min(ss, 59)    # clamp out leap seconds if the platform has them
-        return cls(y, m, d, hh, mm, ss, us, tzinfo)
+        return cls((y, m, d, hh, mm, ss, us), tzinfo=tzinfo)
 
     @classmethod
     def now(cls, tz=None):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to