@@ -48,11 +48,11 @@ def default_config_path():
4848
4949
5050def fill_config_with_default_values (config , default_values ):
51- for section in default_values . iterkeys () :
51+ for section in default_values :
5252 if not config .has_section (section ):
5353 config .add_section (section )
5454
55- for (opt , val ) in default_values [section ].iteritems ():
55+ for (opt , val ) in default_values [section ].items ():
5656 if not config .has_option (section , opt ):
5757 config .set (section , opt , str (val ))
5858
@@ -130,7 +130,7 @@ def loadini(struct, configfile):
130130 }}
131131
132132 default_keys_to_commands = dict ((value , key ) for (key , value )
133- in defaults ['keyboard' ].iteritems ())
133+ in defaults ['keyboard' ].items ())
134134
135135 fill_config_with_default_values (config , defaults )
136136 if not config .read (config_path ):
@@ -307,6 +307,6 @@ def load_theme(struct, path, colors, default_colors):
307307 colors [k ] = theme .get ('interface' , k )
308308
309309 # Check against default theme to see if all values are defined
310- for k , v in default_colors .iteritems ():
310+ for k , v in default_colors .items ():
311311 if k not in colors :
312312 colors [k ] = v
0 commit comments