@@ -10,24 +10,24 @@ class IdleConfParser(ConfigParser):
1010 builtin_sections = {}
1111 for section in ('EditorWindow' , 'Colors' ):
1212 builtin_sections [section ] = section
13-
13+
1414 def getcolor (self , sec , name ):
1515 """Return a dictionary with foreground and background colors
1616
1717 The return value is appropriate for passing to Tkinter in, e.g.,
1818 a tag_config call.
1919 """
20- fore = self .getdef (sec , name + "-foreground" )
21- back = self .getdef (sec , name + "-background" )
20+ fore = self .getdef (sec , name + "-foreground" )
21+ back = self .getdef (sec , name + "-background" )
2222 return {"foreground" : fore ,
2323 "background" : back }
2424
2525 def getdef (self , sec , options , raw = 0 , vars = None , default = None ):
2626 """Get an option value for given section or return default"""
27- try :
27+ try :
2828 return self .get (sec , options , raw , vars )
29- except (NoSectionError , NoOptionError ):
30- return default
29+ except (NoSectionError , NoOptionError ):
30+ return default
3131
3232 def getsection (self , section ):
3333 """Return a SectionConfigParser object"""
@@ -37,10 +37,10 @@ def getextensions(self):
3737 exts = []
3838 for sec in self .sections ():
3939 if self .builtin_sections .has_key (sec ):
40- continue
41- # enable is a bool, but it may not be defined
42- if self .getdef (sec , 'enable' ) != '0' :
43- exts .append (sec )
40+ continue
41+ # enable is a bool, but it may not be defined
42+ if self .getdef (sec , 'enable' ) != '0' :
43+ exts .append (sec )
4444 return exts
4545
4646 def reload (self ):
@@ -69,10 +69,10 @@ def getdef(self, options, raw=0, vars=None, default=None):
6969
7070 def getint (self , option ):
7171 return self .config .getint (self .section , option )
72-
72+
7373 def getfloat (self , option ):
7474 return self .config .getint (self .section , option )
75-
75+
7676 def getboolean (self , option ):
7777 return self .config .getint (self .section , option )
7878
@@ -98,7 +98,7 @@ def load(dir):
9898 genplatfile = os .path .join (dir , "config-mac.txt" )
9999 else :
100100 genplatfile = os .path .join (dir , "config-unix.txt" )
101-
101+
102102 platfile = os .path .join (dir , "config-%s.txt" % sys .platform )
103103
104104 try :
@@ -110,4 +110,3 @@ def load(dir):
110110 os .path .join (homedir , ".idle" )))
111111
112112idleconf = IdleConfParser ()
113-
0 commit comments