diff --git a/src/rougail/user_data_environment/annotator.py b/src/rougail/user_data_environment/annotator.py index d0e32cb..a9592bb 100644 --- a/src/rougail/user_data_environment/annotator.py +++ b/src/rougail/user_data_environment/annotator.py @@ -8,12 +8,12 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA diff --git a/src/rougail/user_data_environment/config.py b/src/rougail/user_data_environment/config.py index 9c84ec1..daf604d 100644 --- a/src/rougail/user_data_environment/config.py +++ b/src/rougail/user_data_environment/config.py @@ -21,7 +21,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ - from .i18n import _ diff --git a/src/rougail/user_data_environment/data.py b/src/rougail/user_data_environment/data.py index 3cb6c59..99636e0 100644 --- a/src/rougail/user_data_environment/data.py +++ b/src/rougail/user_data_environment/data.py @@ -53,7 +53,9 @@ class RougailUserDataEnvironment: self.with_secrets = True self.custom_separator = rougailconfig["environment.custom_separator"] if not rougailconfig["main_namespace"]: - self.default_environment_name = rougailconfig["environment.default_environment_name"] + self.default_environment_name = rougailconfig[ + "environment.default_environment_name" + ] self.errors = [] self.warnings = [] @@ -101,7 +103,7 @@ class RougailUserDataEnvironment: def get_correct_envs(self): for envvar, envval in os.environ.items(): if self.custom_separator: - envvar = envvar.replace(self.custom_separator, '.') + envvar = envvar.replace(self.custom_separator, ".") for prefix in self.prefixes: if envvar.startswith(prefix): yield envvar, envval diff --git a/src/rougail/user_data_environment/i18n.py b/src/rougail/user_data_environment/i18n.py index 381e2cf..58104f5 100644 --- a/src/rougail/user_data_environment/i18n.py +++ b/src/rougail/user_data_environment/i18n.py @@ -20,8 +20,9 @@ from gettext import translation from pathlib import Path t = translation( - "rougail_user_data_environment", str(Path(__file__).parent / "locale"), fallback=True + "rougail_user_data_environment", + str(Path(__file__).parent / "locale"), + fallback=True, ) _ = t.gettext -