(self)
Parses configuration file items from one
        or more related sections.
Parses configuration file items from one
        or more related sections.
Parses configuration file items from one or more related sections .
def parse(self):
        """Parses configuration file items from one
        or more related sections.

        """
        for section_name, section_options in self.sections.items():

            method_postfix = ''
            if section_name:  # [section.option] variant
                method_postfix = '_%s' % section_name

            section_parser_method = getattr(
                self,
                # Dots in section names are translated into dunderscores.
                ('parse_section%s' % method_postfix).replace('.', '__'),
                None)

            if section_parser_method is None:
                raise DistutilsOptionError(
                    'Unsupported distribution option section: [%s.%s]' % (
                        self.section_prefix, section_name))

            section_parser_method(section_options)
def parse ( self ) : for section_name , section_options in self . sections . items ( ) : method_postfix = '' if section_name : # [section.option] variant method_postfix = '_%s' % section_name section_parser_method = getattr ( self , # Dots in section names are translated into dunderscores. ( 'parse_section%s' % method_postfix ) . replace ( '.' , '__' ) , None ) if section_parser_method is None : raise DistutilsOptionError ( 'Unsupported distribution option section: [%s.%s]' % ( self . section_prefix , section_name ) ) section_parser_method ( section_options )