Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
python: Remove duplicates of global imports inside functions.
BIKI DASfb1ff71b2edc
diff --git a/zerver/lib/logging_util.py b/zerver/lib/logging_util.pyindex 19d945df64d..9783e2584ad 100644--- a/zerver/lib/logging_util.py+++ b/zerver/lib/logging_util.py@@ -117,8 +117,6 @@ class ReturnEnabled(logging.Filter):class RequireReallyDeployed(logging.Filter):def filter(self, record: logging.LogRecord) -> bool:- from django.conf import settings-return settings.PRODUCTIONdiff --git a/zerver/management/commands/runtornado.py b/zerver/management/commands/runtornado.pyindex 514b343261f..dcc81da3db0 100644--- a/zerver/management/commands/runtornado.py+++ b/zerver/management/commands/runtornado.py@@ -72,7 +72,6 @@ class Command(BaseCommand):)def inner_run() -> None:- from django.conf import settingsfrom django.utils import translationtranslation.activate(settings.LANGUAGE_CODE)