(self)
Populate default and user config parser dictionaries.
Populate default and user config parser dictionaries.
Populate default and user config parser dictionaries .
def CreateConfigHandlers(self):
        "Populate default and user config parser dictionaries."
        idledir = os.path.dirname(__file__)
        self.userdir = userdir = '' if idlelib.testing else self.GetUserCfgDir()
        for cfg_type in self.config_types:
            self.defaultCfg[cfg_type] = IdleConfParser(
                os.path.join(idledir, f'config-{cfg_type}.def'))
            self.userCfg[cfg_type] = IdleUserConfParser(
                os.path.join(userdir or '#', f'config-{cfg_type}.cfg'))
def CreateConfigHandlers ( self ) : idledir = os . path . dirname ( __file__ ) self . userdir = userdir = '' if idlelib . testing else self . GetUserCfgDir ( ) for cfg_type in self . config_types : self . defaultCfg [ cfg_type ] = IdleConfParser ( os . path . join ( idledir , f'config-{cfg_type}.def' ) ) self . userCfg [ cfg_type ] = IdleUserConfParser ( os . path . join ( userdir or '#' , f'config-{cfg_type}.cfg' ) )