[pypy-commit] pypy py3.5: try to fix test_functools.py
arigo
pypy.commits at gmail.com
Mon Feb 6 07:10:32 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r89971:90e9fb539547
Date: 2017-02-06 13:09 +0100
http://bitbucket.org/pypy/pypy/changeset/90e9fb539547/
Log: try to fix test_functools.py
diff --git a/lib_pypy/_functools.py b/lib_pypy/_functools.py
--- a/lib_pypy/_functools.py
+++ b/lib_pypy/_functools.py
@@ -2,6 +2,8 @@
try: from __pypy__ import builtinify
except ImportError: builtinify = lambda f: f
+from reprlib import recursive_repr as _recursive_repr
+
sentinel = object()
@@ -76,6 +78,7 @@
fkeywords = dict(self._keywords, **fkeywords)
return self._func(*(self._args + fargs), **fkeywords)
+ @_recursive_repr()
def __repr__(self):
cls = type(self)
if cls is partial:
More information about the pypy-commit
mailing list