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

rlamy pypy.commits at gmail.com
Sat Nov 11 10:51:43 EST 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r92990:92c6fb568fa1
Date: 2017-11-11 15:51 +0000
http://bitbucket.org/pypy/pypy/changeset/92c6fb568fa1/

Log:	fix translation

diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -977,6 +977,7 @@
     w_type.setdictvalue(space, '__doc__', w_value)
 
 def type_get_txtsig(space, w_type):
+    w_type = _check(space, w_type)
     if w_type.text_signature is None:
         return space.w_None
     return space.newtext(w_type.text_signature)


More information about the pypy-commit mailing list