write content out also

This commit is contained in:
Elan Ruusamäe 2012-09-19 00:02:45 +02:00
parent 18317eaada
commit 4c38ae918e

View file

@ -76,8 +76,8 @@ def writefile(filename, content, overwrite=False):
if os.path.exists(filename) and overwrite == False:
raise OSError, 'File already exists: %s' % filename
f = file(filename, 'w')
f = codecs.open(filename, 'w', 'utf-8')
f.write(content)
f.close()
# pagedir = MoinMoin page dir