[damned-lies] Removed unused imports



commit ddcecd6992aeb5f090ce1f495c872b6274d531ae
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Feb 16 12:11:58 2019 +0100

    Removed unused imports

 api/views.py                                 | 1 -
 stats/migrations/0016_removed_bugs_fields.py | 2 +-
 stats/templatetags/stats_extras.py           | 3 ---
 stats/tests/tests.py                         | 2 +-
 vertimus/models.py                           | 2 +-
 5 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/api/views.py b/api/views.py
index 7081b0ce..84a3719e 100644
--- a/api/views.py
+++ b/api/views.py
@@ -6,7 +6,6 @@ from django.views.generic import View
 from languages.models import Language
 from stats.models import Module, Release
 from teams.models import Team
-from vertimus.models import State
 from vertimus.views import get_vertimus_state
 
 
diff --git a/stats/migrations/0016_removed_bugs_fields.py b/stats/migrations/0016_removed_bugs_fields.py
index 4d5dae2c..03a29708 100644
--- a/stats/migrations/0016_removed_bugs_fields.py
+++ b/stats/migrations/0016_removed_bugs_fields.py
@@ -1,4 +1,4 @@
-from django.db import migrations, models
+from django.db import migrations
 
 
 class Migration(migrations.Migration):
diff --git a/stats/templatetags/stats_extras.py b/stats/templatetags/stats_extras.py
index af23b6c3..9e884088 100644
--- a/stats/templatetags/stats_extras.py
+++ b/stats/templatetags/stats_extras.py
@@ -1,8 +1,5 @@
-import re
-
 from django import template
 from django.conf import settings
-from django.utils.encoding import force_text
 from django.utils.html import format_html
 from django.utils.safestring import mark_safe
 from django.utils.translation import get_language_bidi
diff --git a/stats/tests/tests.py b/stats/tests/tests.py
index b8582f9c..e92f15ae 100644
--- a/stats/tests/tests.py
+++ b/stats/tests/tests.py
@@ -26,7 +26,7 @@ from languages.models import Language
 from .utils import patch_shell_command, test_scratchdir
 
 try:
-    from translate.storage import subtitles
+    from translate.storage import subtitles  # NOQA
     has_translate_subtitle_support = True
 except ImportError:
     has_translate_subtitle_support = False
diff --git a/vertimus/models.py b/vertimus/models.py
index df12519b..f97e6920 100644
--- a/vertimus/models.py
+++ b/vertimus/models.py
@@ -14,7 +14,7 @@ from django.utils.translation import override, ugettext, ugettext_noop, ugettext
 from common.utils import run_shell_command, send_mail
 from stats.models import Branch, Domain, Statistics, PoFile, UnableToCommit
 from stats.signals import pot_has_changed
-from stats.utils import STATUS_OK, is_po_reduced, po_grep
+from stats.utils import is_po_reduced, po_grep
 from languages.models import Language
 from people.models import Person
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]