#NEWLINE# def pformat( self , maxlen = 10 ) : #NEWLINE# #INDENT# '\n        Return a string representation of this FreqDist.\n\n        :param maxlen: The maximum number of items to display\n        :type maxlen: int\n        :rtype: string\n        ' #NEWLINE# items = [ '{0!r}: {1!r}' . format ( * item ) for item in self . most_common ( maxlen ) ] #NEWLINE# if ( len ( self ) > maxlen ) : #NEWLINE# #INDENT# items . append ( '...' ) #NEWLINE# #UNINDENT# return 'FreqDist({{{0}}})' . format ( ', ' . join ( items ) )