Skip to content

Commit 2d0c503

Browse files
committed
Fixed pyflakes issues
- Legacy-Id: 15792
1 parent 0e8f639 commit 2d0c503

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

ietf/utils/management/commands/loadrelated.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# -*- coding: utf-8 -*-
33
from __future__ import unicode_literals, print_function
44

5-
import datetime
65
import gzip
7-
import io
86
import os
97
#import sys
108
import tqdm
@@ -17,25 +15,15 @@
1715
has_bz2 = False
1816

1917
from django.core.exceptions import ObjectDoesNotExist
20-
from django.conf import settings
21-
from django.contrib.admin.utils import NestedObjects
22-
from django.contrib.auth.models import User
2318
from django.core import serializers
2419
from django.db import DEFAULT_DB_ALIAS, DatabaseError, IntegrityError, connections
25-
from django.db.models import F
26-
from django.db.models.signals import pre_delete, post_save
27-
from django.dispatch import receiver
20+
from django.db.models.signals import post_save
2821
from django.utils.encoding import force_text
2922
import django.core.management.commands.loaddata as loaddata
3023

31-
3224
import debug # pyflakes:ignore
3325

34-
from ietf.community.models import SearchRule, CommunityList, EmailSubscription, notify_events
35-
from ietf.doc.models import Document
36-
from ietf.person.models import Person, HistoricalPerson, PersonEvent, Alias, PersonalApiKey, Email, HistoricalEmail
37-
from ietf.person.name import unidecode_name
38-
from ietf.utils.log import log
26+
from ietf.community.models import notify_events
3927

4028
class Command(loaddata.Command):
4129
help = (u"""
@@ -76,7 +64,6 @@ def handle(self, *args, **options):
7664
#
7765
post_save.disconnect(notify_events)
7866
#
79-
show_progress = self.verbosity >= 3
8067
connection = connections[self.using]
8168
self.fixture_count = 0
8269
self.loaded_object_count = 0

0 commit comments

Comments
 (0)