write content out also
This commit is contained in:
parent
18317eaada
commit
4c38ae918e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue