[PATCH] Remove '__future__.absolute_import' imports
Stephen Finucane
stephen at that.guru
Mon Sep 17 23:10:44 AEST 2018
These were added as part of the Python 3 support series but are not
required and can be safely removed.
Signed-off-by: Stephen Finucane <stephen at that.guru>
---
patchwork/admin.py | 2 --
patchwork/fields.py | 2 --
patchwork/filters.py | 2 --
patchwork/models.py | 2 --
patchwork/paginator.py | 2 --
patchwork/settings/dev.py | 2 --
patchwork/settings/production.example.py | 2 --
patchwork/templatetags/listurl.py | 2 --
patchwork/templatetags/patch.py | 2 --
patchwork/templatetags/person.py | 2 --
patchwork/templatetags/project.py | 2 --
patchwork/templatetags/syntax.py | 2 --
patchwork/tests/test_bundles.py | 2 --
patchwork/tests/test_completion.py | 2 --
patchwork/tests/test_detail.py | 2 --
patchwork/tests/test_list.py | 2 --
patchwork/views/xmlrpc.py | 2 --
17 files changed, 34 deletions(-)
diff --git a/patchwork/admin.py b/patchwork/admin.py
index d5b9887e..a0799011 100644
--- a/patchwork/admin.py
+++ b/patchwork/admin.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
diff --git a/patchwork/fields.py b/patchwork/fields.py
index e229d5be..9ad2c3c7 100644
--- a/patchwork/fields.py
+++ b/patchwork/fields.py
@@ -17,8 +17,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
import hashlib
from django.db import models
diff --git a/patchwork/filters.py b/patchwork/filters.py
index 778b0bbd..2bcf26a8 100644
--- a/patchwork/filters.py
+++ b/patchwork/filters.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from django.contrib.auth.models import User
from django.utils.html import escape
from django.utils.safestring import mark_safe
diff --git a/patchwork/models.py b/patchwork/models.py
index 734abce6..4e925160 100644
--- a/patchwork/models.py
+++ b/patchwork/models.py
@@ -17,8 +17,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from collections import Counter
from collections import OrderedDict
import datetime
diff --git a/patchwork/paginator.py b/patchwork/paginator.py
index 6acc9030..0cc0ad20 100644
--- a/patchwork/paginator.py
+++ b/patchwork/paginator.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from django.conf import settings
from django.core import paginator
diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index 79148803..4bb5a93c 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -7,8 +7,6 @@ Design based on:
http://www.revsys.com/blog/2014/nov/21/recommended-django-project-layout/
"""
-from __future__ import absolute_import
-
from .base import * # noqa
#
diff --git a/patchwork/settings/production.example.py b/patchwork/settings/production.example.py
index 0c7a88c0..f58896fc 100644
--- a/patchwork/settings/production.example.py
+++ b/patchwork/settings/production.example.py
@@ -7,8 +7,6 @@ Design based on:
http://www.revsys.com/blog/2014/nov/21/recommended-django-project-layout/
"""
-from __future__ import absolute_import
-
import os
from .base import * # noqa
diff --git a/patchwork/templatetags/listurl.py b/patchwork/templatetags/listurl.py
index a0981dd3..dc76b157 100644
--- a/patchwork/templatetags/listurl.py
+++ b/patchwork/templatetags/listurl.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from django.conf import settings
from django import template
from django.urls import reverse
diff --git a/patchwork/templatetags/patch.py b/patchwork/templatetags/patch.py
index b97d492c..27d0bce7 100644
--- a/patchwork/templatetags/patch.py
+++ b/patchwork/templatetags/patch.py
@@ -17,8 +17,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from django import template
from django.utils.safestring import mark_safe
from django.template.defaultfilters import stringfilter
diff --git a/patchwork/templatetags/person.py b/patchwork/templatetags/person.py
index becb03aa..17cff6f7 100644
--- a/patchwork/templatetags/person.py
+++ b/patchwork/templatetags/person.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from django import template
from django.urls import reverse
from django.utils.html import escape
diff --git a/patchwork/templatetags/project.py b/patchwork/templatetags/project.py
index 10de1517..3a8159dc 100644
--- a/patchwork/templatetags/project.py
+++ b/patchwork/templatetags/project.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from django import template
from django.utils.safestring import mark_safe
diff --git a/patchwork/templatetags/syntax.py b/patchwork/templatetags/syntax.py
index 6c90bc8b..862c854f 100644
--- a/patchwork/templatetags/syntax.py
+++ b/patchwork/templatetags/syntax.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
import re
from django import template
diff --git a/patchwork/tests/test_bundles.py b/patchwork/tests/test_bundles.py
index 8100a9ee..91336f57 100644
--- a/patchwork/tests/test_bundles.py
+++ b/patchwork/tests/test_bundles.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
import base64
import datetime
import unittest
diff --git a/patchwork/tests/test_completion.py b/patchwork/tests/test_completion.py
index 17ac7996..a510adf1 100644
--- a/patchwork/tests/test_completion.py
+++ b/patchwork/tests/test_completion.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
import json
from django.test import TestCase
diff --git a/patchwork/tests/test_detail.py b/patchwork/tests/test_detail.py
index 33c0ea69..c1bb6a86 100644
--- a/patchwork/tests/test_detail.py
+++ b/patchwork/tests/test_detail.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from django.test import TestCase
from django.urls import reverse
diff --git a/patchwork/tests/test_list.py b/patchwork/tests/test_list.py
index 2a827689..4c15b798 100644
--- a/patchwork/tests/test_list.py
+++ b/patchwork/tests/test_list.py
@@ -16,8 +16,6 @@
# Patchwork; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA, 02110-1335, USA
-from __future__ import absolute_import
-
from datetime import datetime as dt
import re
diff --git a/patchwork/views/xmlrpc.py b/patchwork/views/xmlrpc.py
index 789f2464..1e90efc3 100644
--- a/patchwork/views/xmlrpc.py
+++ b/patchwork/views/xmlrpc.py
@@ -19,8 +19,6 @@
# Patchwork XMLRPC interface
#
-from __future__ import absolute_import
-
import base64
# NOTE(stephenfin) six does not seem to support this
try:
--
2.17.1
More information about the Patchwork
mailing list