Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r90579:7e0ff26e1482
Date: 2017-03-06 13:37 +0100
http://bitbucket.org/pypy/pypy/changeset/7e0ff26e1482/

Log:    issue #2489: fix to support half-bogus use case

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
@@ -1000,6 +1000,11 @@
         else:
             return (self.__class__, args, state)
 
+    # PyPy: added for compatibility with the _datetime module
+    # issue #2489
+    def __new__(cls, *args, **kwds):
+        return super(tzinfo, cls).__new__(cls)
+
 _tzinfo_class = tzinfo
 
 class time:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to