[pypy-commit] pypy py3.5: backout c7e665a4d094: this hack isn't needed any more
rlamy
pypy.commits at gmail.com
Mon Nov 13 11:55:51 EST 2017
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r93003:e73ed06e7955
Date: 2017-11-13 16:53 +0000
http://bitbucket.org/pypy/pypy/changeset/e73ed06e7955/
Log: backout c7e665a4d094: this hack isn't needed any more
diff --git a/lib-python/3/inspect.py b/lib-python/3/inspect.py
--- a/lib-python/3/inspect.py
+++ b/lib-python/3/inspect.py
@@ -2078,8 +2078,6 @@
s = getattr(func, "__text_signature__", None)
if not s:
- if func is object: # XXX PyPy hack until we support __text_signature__
- return '()' # in the same cases as CPython
raise ValueError("no signature found for builtin {!r}".format(func))
return _signature_fromstr(cls, func, s, skip_bound_arg)
More information about the pypy-commit
mailing list