Use RawConfigParser instead of ConfigParser
Thomas Ross
3 years ago
|
0 |
v0.10.0 - May ??, 2020
|
|
1 |
BREAKING CHANGES
|
|
2 |
+ Convert to Python 3's ConfigParser with no interpolation. This
|
|
3 |
preserves compatibility with the old config files all cases,
|
|
4 |
except when they have been manually modified to use interpolation.
|
|
5 |
|
0 | 6 |
v0.9.5.2 - February 13, 2011
|
1 | 7 |
+ Added ukrainian translation
|
2 | 8 |
+ Bug: Screenshot did not work correctly
|
242 | 242 |
os.getenv("XDG_CONFIG_HOME") or os.path.expanduser("~/.config")
|
243 | 243 |
) + "/mirage"
|
244 | 244 |
# Load config from disk:
|
245 | |
conf = configparser.ConfigParser()
|
|
245 |
conf = configparser.ConfigParser(interpolation=None)
|
246 | 246 |
if os.path.isfile(self.config_dir + "/miragerc"):
|
247 | 247 |
conf.read(self.config_dir + "/miragerc")
|
248 | 248 |
if conf.has_option("window", "w"):
|
|
2073 | 2073 |
return
|
2074 | 2074 |
|
2075 | 2075 |
def save_settings(self):
|
2076 | |
conf = configparser.ConfigParser()
|
|
2076 |
conf = configparser.ConfigParser(interpolation=None)
|
2077 | 2077 |
conf.add_section("window")
|
2078 | 2078 |
conf.set("window", "w", self.window.get_allocation().width)
|
2079 | 2079 |
conf.set("window", "h", self.window.get_allocation().height)
|