diff -r fdaa0e4b7eaf -r 7c23b7de2b8d _gcdebug.py --- a/_gcdebug.py Fri Sep 11 14:28:06 2015 +0200 +++ b/_gcdebug.py Fri Sep 11 14:52:09 2015 +0200 @@ -15,6 +15,7 @@ # # You should have received a copy of the GNU Lesser General Public License along # with CubicWeb. If not, see . +from __future__ import print_function import gc, types, weakref @@ -68,7 +69,7 @@ except KeyError: ocounters[key] = 1 if isinstance(obj, viewreferrersclasses): - print ' ', obj, referrers(obj, showobjs, maxlevel) + print(' ', obj, referrers(obj, showobjs, maxlevel)) garbage = [repr(obj) for obj in gc.garbage] return counters, ocounters, garbage