aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2017-03-19 12:55:48 -0700
committerPhilip Jenvey <pjenvey@underboss.org>2017-03-19 12:55:48 -0700
commitc55c2e3af4fd9fbed3568302a6b24f0eb010c0d3 (patch)
tree43a5098849bdd6eb36c283f771fa85d8f7294717
parentmerge default into release (diff)
parentfix translation (diff)
downloadpypy-c55c2e3af4fd9fbed3568302a6b24f0eb010c0d3.tar.gz
pypy-c55c2e3af4fd9fbed3568302a6b24f0eb010c0d3.tar.bz2
pypy-c55c2e3af4fd9fbed3568302a6b24f0eb010c0d3.zip
-rw-r--r--pypy/module/thread/os_local.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pypy/module/thread/os_local.py b/pypy/module/thread/os_local.py
index cb929e7d7b..aefe8bd1ac 100644
--- a/pypy/module/thread/os_local.py
+++ b/pypy/module/thread/os_local.py
@@ -75,6 +75,8 @@ class Local(W_Root):
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: