def format_live_refs(ignore=NoneType):
 s = 'Live References\n\n'
 now = time()
 for (cls, wdict) in sorted(six.iteritems(live_refs), key=(lambda x: x[0].__name__)):
  if (not wdict):
   continue
  if issubclass(cls, ignore):
   continue
  oldest = min(six.itervalues(wdict))
  s += ('%-30s %6d   oldest: %ds ago\n' % (cls.__name__, len(wdict), (now - oldest)))
 return s

def format_live_refs ( ignore = NoneType ) : s = 'Live References\n\n' now = time ( ) for ( cls , wdict ) in sorted ( six . iteritems ( live_refs ) , key = ( lambda x : x [ 0 ] . __name__ ) ) : if ( not wdict ) : continue if issubclass ( cls , ignore ) : continue oldest = min ( six . itervalues ( wdict ) ) s += ( '%-30s %6d   oldest: %ds ago\n' % ( cls . __name__ , len ( wdict ) , ( now - oldest ) ) ) return s
return a tabular representation of tracked objects .