def format(self, clip=0, grand=None):
        '''Return format dict.
        '''
        if self.number > 1:  # avg., plural
            a, p = int(self.total / self.number), 's'
        else:
            a, p = self.total, ''
        o = self.objref
        if self.weak:  # weakref'd
            o = o()
        t = _SI2(self.total)
        if grand:
            t += ' (%s)' % _p100(self.total, grand, prec=0)
        return _kwds(avg=_SI2(a),         high=_SI2(self.high),
                     lengstr=_lengstr(o), obj=_repr(o, clip=clip),
                     plural=p,            total=t)
def format ( self , clip = 0 , grand = None ) : if self . number > 1 : a , p = int ( self . total / self . number ) , 's' else : a , p = self . total , '' o = self . objref if self . weak : o = o ( ) t = _SI2 ( self . total ) if grand : t += ' (%s)' % _p100 ( self . total , grand , prec = 0 ) return _kwds ( avg = _SI2 ( a ) , high = _SI2 ( self . high ) , lengstr = _lengstr ( o ) , obj = _repr ( o , clip = clip ) , plural = p , total = t )
Return format dict.