Remove usage of codecs.open

This commit is contained in:
Jérôme Lebleu
2020-01-07 10:16:54 +01:00
parent 605ad1a7bc
commit a9ef9b7e5d
+1 -2
View File
@@ -1,6 +1,5 @@
"""A shortcut to deploy a fresh modoboa instance."""
import codecs
import getpass
import os
import shutil
@@ -245,7 +244,7 @@ class DeployCommand(Command):
"extra_settings": extra_settings
}
)
with codecs.open("%s/settings.py" % path, "w", "utf-8") as fp:
with open("%s/settings.py" % path, "w") as fp:
fp.write(tpl)
shutil.copyfile(
"%s/urls.py.tpl" % self._templates_dir, "%s/urls.py" % path