@@ -33,11 +33,6 @@ def loadini(struct, configfile):
3333 """Loads .ini configuration file and stores its values in struct"""
3434
3535 config_path = os .path .expanduser (configfile )
36- if not os .path .isfile (config_path ) and configfile == default_config_path ():
37- # We decided that '~/.bpython/config' still was a crappy
38- # place, use XDG Base Directory Specification instead. Fall
39- # back to old config, though.
40- config_path = os .path .expanduser ('~/.bpython/config' )
4136
4237 config = ConfigParser ()
4338 fill_config_with_default_values (config , {
@@ -183,17 +178,9 @@ def loadini(struct, configfile):
183178 theme_filename = color_scheme_name + '.theme'
184179 path = os .path .expanduser (os .path .join (get_config_home (),
185180 theme_filename ))
186- old_path = os .path .expanduser (os .path .join ('~/.bpython' ,
187- theme_filename ))
188-
189- for path in [path , old_path ]:
190- try :
191- load_theme (struct , path , struct .color_scheme , default_colors )
192- except EnvironmentError :
193- continue
194- else :
195- break
196- else :
181+ try :
182+ load_theme (struct , path , struct .color_scheme , default_colors )
183+ except EnvironmentError :
197184 sys .stderr .write ("Could not load theme '%s'.\n " %
198185 (color_scheme_name , ))
199186 sys .exit (1 )
0 commit comments