fix a small error that caused deletion of your hud_config when saving.. oopsie

This commit is contained in:
Eric Blade 2009-09-17 05:26:06 -05:00
parent 226153f15f
commit 3f0ede67ee

View File

@ -502,7 +502,7 @@ class Config:
self.doc.writexml(f)
else:
shutil.move(self.file, self.file+".backup")
with open(self.file, 'w'):
with open(self.file, 'w') as f:
self.doc.writexml(f)
def edit_layout(self, site_name, max, width = None, height = None,