python: Remove duplicates of global imports inside functions.

Neither of these appears to have been intentional.
This commit is contained in:
BIKI DAS 2022-01-13 03:20:12 +05:30 committed by GitHub
parent 82a048004a
commit fb1ff71b2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View File

@ -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

View File

@ -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)