comparison pytouhou/options.py @ 615:d1f0bb0b7a17

Don’t inherit explicitely from object, we are not on Python 2.7 anymore. :)
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 28 Mar 2015 21:40:51 +0100
parents 244c99c568c8
children 4fa0a8e7d941
comparison
equal deleted inserted replaced
614:2cf518129725 615:d1f0bb0b7a17
16 from configparser import RawConfigParser, NoOptionError 16 from configparser import RawConfigParser, NoOptionError
17 17
18 from pytouhou.utils.xdg import load_config_paths, save_config_path 18 from pytouhou.utils.xdg import load_config_paths, save_config_path
19 19
20 20
21 class Options(object): 21 class Options:
22 def __init__(self, name, defaults): 22 def __init__(self, name, defaults):
23 load_paths = list(reversed([os.path.join(directory, '%s.cfg' % name) 23 load_paths = list(reversed([os.path.join(directory, '%s.cfg' % name)
24 for directory 24 for directory
25 in load_config_paths(name)])) 25 in load_config_paths(name)]))
26 self.save_path = os.path.join(save_config_path(name), '%s.cfg' % name) 26 self.save_path = os.path.join(save_config_path(name), '%s.cfg' % name)