@@ -259,13 +259,13 @@ def GetSectionList(self, configSet, configType):
259259 configType must be one of ('main','extensions','highlight','keys')
260260 """
261261 if not (configType in ('main' ,'extensions' ,'highlight' ,'keys' )):
262- raise InvalidConfigType , 'Invalid configType specified'
262+ raise InvalidConfigType ( 'Invalid configType specified' )
263263 if configSet == 'user' :
264264 cfgParser = self .userCfg [configType ]
265265 elif configSet == 'default' :
266266 cfgParser = self .defaultCfg [configType ]
267267 else :
268- raise InvalidConfigSet , 'Invalid configSet specified'
268+ raise InvalidConfigSet ( 'Invalid configSet specified' )
269269 return cfgParser .sections ()
270270
271271 def GetHighlight (self , theme , element , fgBg = None ):
@@ -293,7 +293,7 @@ def GetHighlight(self, theme, element, fgBg=None):
293293 if fgBg == 'bg' :
294294 return highlight ["background" ]
295295 else :
296- raise InvalidFgBg , 'Invalid fgBg specified'
296+ raise InvalidFgBg ( 'Invalid fgBg specified' )
297297
298298 def GetThemeDict (self ,type ,themeName ):
299299 """
@@ -309,7 +309,7 @@ def GetThemeDict(self,type,themeName):
309309 elif type == 'default' :
310310 cfgParser = self .defaultCfg ['highlight' ]
311311 else :
312- raise InvalidTheme , 'Invalid theme type specified'
312+ raise InvalidTheme ( 'Invalid theme type specified' )
313313 #foreground and background values are provded for each theme element
314314 #(apart from cursor) even though all these values are not yet used
315315 #by idle, to allow for their use in the future. Default values are
@@ -624,7 +624,7 @@ def GetExtraHelpSourceList(self,configSet):
624624 elif configSet == 'default' :
625625 cfgParser = self .defaultCfg ['main' ]
626626 else :
627- raise InvalidConfigSet , 'Invalid configSet specified'
627+ raise InvalidConfigSet ( 'Invalid configSet specified' )
628628 options = cfgParser .GetOptionList ('HelpFiles' )
629629 for option in options :
630630 value = cfgParser .Get ('HelpFiles' ,option ,default = ';' )
0 commit comments