(self)
return b'{}({})'.format(type(self).__name__, b', '.join(items))
Bytes representation (for Python 2).
Bytes representation (for Python 2).
Bytes representation ( for Python 2 ) .
def __repr__(self):
        """Bytes representation (for Python 2)."""
        keys = sorted(self.__dict__)
        items = (b'{}={!r}'.format(k, self.__dict__[k]) for k in keys)
        return b'{}({})'.format(type(self).__name__, b', '.join(items))
def __repr__ ( self ) : keys = sorted ( self . __dict__ ) items = ( b'{}={!r}' . format ( k , self . __dict__ [ k ] ) for k in keys ) return b'{}({})' . format ( type ( self ) . __name__ , b', ' . join ( items ) )