From 4c38ae918e8cd6996a1784ee92a281161f47a8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 19 Sep 2012 00:02:45 +0200 Subject: [PATCH] write content out also --- moin2doku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moin2doku.py b/moin2doku.py index bbff187..50a059a 100755 --- a/moin2doku.py +++ b/moin2doku.py @@ -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