[pypy-commit] pypy py3.5: fix translation

pjenvey pypy.commits at gmail.com
Mon Mar 20 12:05:58 EDT 2017


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3.5
Changeset: r90763:b1691349d5f1
Date: 2017-03-20 18:03 +0200
http://bitbucket.org/pypy/pypy/changeset/b1691349d5f1/

Log:	fix translation

diff --git a/pypy/module/thread/os_local.py b/pypy/module/thread/os_local.py
--- a/pypy/module/thread/os_local.py
+++ b/pypy/module/thread/os_local.py
@@ -76,6 +76,8 @@
         return w_dict
 
     def descr_local__new__(space, w_subtype, __args__):
+        from pypy.objspace.std.typeobject import _precheck_for_new
+        w_subtype = _precheck_for_new(space, w_subtype)
         if __args__.arguments_w or __args__.keywords:
             w_parent_init, _ = space.lookup_in_type_where(w_subtype, '__init__')
             if w_parent_init is space.w_object:


More information about the pypy-commit mailing list