def get_section(self, *key):
        """
        The recommended way of retrieving a section by key when extending configmanager's behaviour.
        """
        section = self._get_item_or_section(key)
        if not section.is_section:
            raise RuntimeError('{} is an item, not a section'.format(key))
        return section
def get_section ( self , * key ) : section = self . _get_item_or_section ( key ) if not section . is_section : raise RuntimeError ( '{} is an item, not a section' . format ( key ) ) return section
The recommended way of retrieving a section by key when extending configmanager's behaviour.