Codebase list mirage / f3d29db
Use RawConfigParser instead of ConfigParser Thomas Ross 3 years ago
2 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
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
06 v0.9.5.2 - February 13, 2011
17 + Added ukrainian translation
28 + Bug: Screenshot did not work correctly
242242 os.getenv("XDG_CONFIG_HOME") or os.path.expanduser("~/.config")
243243 ) + "/mirage"
244244 # Load config from disk:
245 conf = configparser.ConfigParser()
245 conf = configparser.ConfigParser(interpolation=None)
246246 if os.path.isfile(self.config_dir + "/miragerc"):
247247 conf.read(self.config_dir + "/miragerc")
248248 if conf.has_option("window", "w"):
20732073 return
20742074
20752075 def save_settings(self):
2076 conf = configparser.ConfigParser()
2076 conf = configparser.ConfigParser(interpolation=None)
20772077 conf.add_section("window")
20782078 conf.set("window", "w", self.window.get_allocation().width)
20792079 conf.set("window", "h", self.window.get_allocation().height)