mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
python: Remove duplicates of global imports inside functions.
Neither of these appears to have been intentional.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user