From a9ef9b7e5dddf07a0fe2063d08c98e94f30bbbc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Thu, 2 Jan 2020 14:21:19 +0100 Subject: [PATCH] Remove usage of codecs.open --- modoboa/core/commands/deploy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modoboa/core/commands/deploy.py b/modoboa/core/commands/deploy.py index d750616a6..ec2b88f66 100644 --- a/modoboa/core/commands/deploy.py +++ b/modoboa/core/commands/deploy.py @@ -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