diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-08-23 01:06:15 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-08-23 01:06:15 (GMT) |
commit | ad66742e3459addfaf7542808611c7dca254a8fd (patch) | |
tree | aa478d06ca74ee33330fea9599ca8e268de6c776 /Lib/idlelib/configHandler.py | |
parent | e45be28be665a04aef0d0a7444ba27fde2dd2d5f (diff) | |
download | cpython-ad66742e3459addfaf7542808611c7dca254a8fd.zip cpython-ad66742e3459addfaf7542808611c7dca254a8fd.tar.gz cpython-ad66742e3459addfaf7542808611c7dca254a8fd.tar.bz2 |
Fix raise with 2to3
M idlelib/configHandler.py
M idlelib/tabpage.py
M idlelib/EditorWindow.py
M idlelib/rpc.py
M idlelib/IOBinding.py
M idlelib/RemoteDebugger.py
M idlelib/TreeWidget.py
Diffstat (limited to 'Lib/idlelib/configHandler.py')
-rw-r--r-- | Lib/idlelib/configHandler.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py index 2c9056e..0c88396 100644 --- a/Lib/idlelib/configHandler.py +++ b/Lib/idlelib/configHandler.py @@ -259,13 +259,13 @@ class IdleConf: configType must be one of ('main','extensions','highlight','keys') """ if not (configType in ('main','extensions','highlight','keys')): - raise InvalidConfigType, 'Invalid configType specified' + raise InvalidConfigType('Invalid configType specified') if configSet == 'user': cfgParser=self.userCfg[configType] elif configSet == 'default': cfgParser=self.defaultCfg[configType] else: - raise InvalidConfigSet, 'Invalid configSet specified' + raise InvalidConfigSet('Invalid configSet specified') return cfgParser.sections() def GetHighlight(self, theme, element, fgBg=None): @@ -293,7 +293,7 @@ class IdleConf: if fgBg == 'bg': return highlight["background"] else: - raise InvalidFgBg, 'Invalid fgBg specified' + raise InvalidFgBg('Invalid fgBg specified') def GetThemeDict(self,type,themeName): """ @@ -309,7 +309,7 @@ class IdleConf: elif type == 'default': cfgParser=self.defaultCfg['highlight'] else: - raise InvalidTheme, 'Invalid theme type specified' + raise InvalidTheme('Invalid theme type specified') #foreground and background values are provded for each theme element #(apart from cursor) even though all these values are not yet used #by idle, to allow for their use in the future. Default values are @@ -624,7 +624,7 @@ class IdleConf: elif configSet=='default': cfgParser=self.defaultCfg['main'] else: - raise InvalidConfigSet, 'Invalid configSet specified' + raise InvalidConfigSet('Invalid configSet specified') options=cfgParser.GetOptionList('HelpFiles') for option in options: value=cfgParser.Get('HelpFiles',option,default=';') |