python: Sort migrations/management command imports with isort.

This is a preparatory commit for using isort for sorting all of our
imports, merging changes to files where we can easily review the
changes as something we're happy with.

These are also files with relatively little active development, which
means we don't expect much merge conflict risk from these changes.
This commit is contained in:
Tim Abbott
2020-01-14 12:59:46 -08:00
parent 9f8eccdbbf
commit 8e7ce7cc79
261 changed files with 356 additions and 223 deletions

View File

@@ -1,17 +1,17 @@
import logging
import time
from typing import Any, Dict
from datetime import timedelta
from typing import Any, Dict
from django.conf import settings
from django.core.management.base import BaseCommand
from django.db import transaction
from django.utils.timezone import now as timezone_now
from zerver.lib.actions import do_send_messages
from zerver.lib.logging_util import log_to_file
from zerver.lib.management import sleep_forever
from zerver.models import ScheduledMessage, Message, get_user_by_delivery_email
from zerver.lib.actions import do_send_messages
from zerver.models import Message, ScheduledMessage, get_user_by_delivery_email
## Setup ##
logger = logging.getLogger(__name__)