Author: Ronan Lamy <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit