def __PrintEnumDocstringLines ( self , enum_type ) : description = enum_type . description or '%s enum type.' % enum_type . name for line in textwrap . wrap ( 'r"""%s' % description , self . __printer . CalculateWidth ( ) ) : self . __printer ( line ) PrintIndentedDescriptions ( self . __printer , enum_type . values , 'Values' ) self . __printer ( '"""' )
printing out an python enum text
def __PrintEnumDocstringLines(self, enum_type):
        description = enum_type.description or '%s enum type.' % enum_type.name
        for line in textwrap.wrap('r"""%s' % description,
                                  self.__printer.CalculateWidth()):
            self.__printer(line)
        PrintIndentedDescriptions(self.__printer, enum_type.values, 'Values')
        self.__printer('"""')