Skip to content

armgit / zulip

Public Imported from GitHub
0

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.py
index 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.PRODUCTION
diff --git a/zerver/management/commands/runtornado.py b/zerver/management/commands/runtornado.py
index 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 settings
from django.utils import translation
translation.activate(settings.LANGUAGE_CODE)