mirror of https://github.com/zulip/zulip.git
python: Remove duplicates of global imports inside functions.
Neither of these appears to have been intentional.
This commit is contained in:
parent
82a048004a
commit
fb1ff71b2e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue