From 229411a45758c68bd414b22085f5547fdb9c8fde Mon Sep 17 00:00:00 2001
From: Andreas Ellewsen <andreas@ellewsen.no>
Date: Tue, 31 Aug 2021 12:54:57 +0200
Subject: [PATCH] Clean up imports in management commands

---
 .../commands/start_notification_publisher.py      | 15 +++++++--------
 .../commands/stop_notification_publisher.py       |  7 ++-----
 2 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/greg/management/commands/start_notification_publisher.py b/greg/management/commands/start_notification_publisher.py
index 2a76532e..b73d26fc 100644
--- a/greg/management/commands/start_notification_publisher.py
+++ b/greg/management/commands/start_notification_publisher.py
@@ -1,18 +1,17 @@
-import logging
-import sys
 import json
+import logging
 import signal
+import sys
 
 import daemon
-from daemon import pidfile
 import lockfile
-from django.core.management.base import BaseCommand, CommandError
-
-from greg.models import Notification
-from greg.api.serializers import get_serializer
+from daemon import pidfile
+from django.conf import settings
+from django.core.management.base import BaseCommand
 from pika_context_manager import PCM
 
-from django.conf import settings
+from greg.api.serializers import get_serializer
+from greg.models import Notification
 
 logging.config.dictConfig(settings.LOGGING)
 logger = logging.getLogger()
diff --git a/greg/management/commands/stop_notification_publisher.py b/greg/management/commands/stop_notification_publisher.py
index f2af4675..95e41958 100644
--- a/greg/management/commands/stop_notification_publisher.py
+++ b/greg/management/commands/stop_notification_publisher.py
@@ -1,11 +1,8 @@
-import argparse
-import datetime
-import signal
 import os
-
-from django.core.management.base import BaseCommand, CommandError
+import signal
 
 from django.conf import settings
+from django.core.management.base import BaseCommand
 
 
 class Command(BaseCommand):
-- 
GitLab