]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Remove '__future__.absolute_import' imports
authorStephen Finucane <stephen@that.guru>
Mon, 17 Sep 2018 13:56:36 +0000 (14:56 +0100)
committerStephen Finucane <stephen@that.guru>
Wed, 19 Sep 2018 10:34:42 +0000 (11:34 +0100)
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@that.guru>
17 files changed:
patchwork/admin.py
patchwork/fields.py
patchwork/filters.py
patchwork/models.py
patchwork/paginator.py
patchwork/settings/dev.py
patchwork/settings/production.example.py
patchwork/templatetags/listurl.py
patchwork/templatetags/patch.py
patchwork/templatetags/person.py
patchwork/templatetags/project.py
patchwork/templatetags/syntax.py
patchwork/tests/test_bundles.py
patchwork/tests/test_completion.py
patchwork/tests/test_detail.py
patchwork/tests/test_list.py
patchwork/views/xmlrpc.py

index 133872ace3838622d6233d6d7ab943ff7aa7e9c2..bab94a344484e15348c3a11acd915e3e8c44020d 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  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
index 502558be5214de02645f28162231e91c130d277e..c10432b9b56f4e9b8a3729585e42a0ceb1fd16be 100644 (file)
@@ -18,8 +18,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 import hashlib
 
 from django.db import models
index 8d0f82f2d9a5772d2d734d3527d5fdff1811fbb5..7b5db1177ab464a1dc4ae2a38cee6be1112e00de 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  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
index 8731bb2f9d671207e887b7ed9bd57b4e06018046..2bc026a0ea9a4f341fc97ca665237ab95b04c9d4 100644 (file)
@@ -18,8 +18,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 from collections import Counter
 from collections import OrderedDict
 import datetime
index f565c420510c9029908f3ec44241ed34840fce22..1696cba5f155a1f6d08f743555ba936f020a5316 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 from django.conf import settings
 from django.core import paginator
 
index 791488038dde1da6d0de4181dabd4c0c87b6892a..4bb5a93ce41b400fa14944d6dab507fa213094f6 100644 (file)
@@ -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
 
 #
index 0c7a88c03556f51cad9a3db39bfc6f535570dc55..f58896fc0ac7da5ebcc4dfd6e5b9882362bf6d07 100644 (file)
@@ -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
index 76dae7973fd6bd7f41882b4ed6d9dd3b4c4b1f7e..c987fb47acfce5f113131835ede6513b9908bb05 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 from django.conf import settings
 from django import template
 from django.urls import reverse
index 30ccc8e2a23c9d371f0bf9f8f68b8a3d42a061a7..c5dbf25556369317bca93a0fe51a25069f96944e 100644 (file)
@@ -18,8 +18,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 from django import template
 from django.utils.safestring import mark_safe
 from django.template.defaultfilters import stringfilter
index 09c8d1033fa18414c1d58ef330c4fca48efaf82d..8036a77fa440f3f83f2505ff2605ea91b3e6941d 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 from django import template
 from django.urls import reverse
 from django.utils.html import escape
index 32d8011b5e2a0c3518c6e84dfeea8fc24461acac..fa338959fa44a56bdf11641aa782ae4747ea166d 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 from django import template
 from django.utils.safestring import mark_safe
 
index 27ff8c3a16b8331d02524b5f598f100b00236000..78877401849422c51337912545c3911e1cc21b65 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 import re
 
 from django import template
index 3fa556b0103f6ebf1d812e204a7ad43775557d9e..bdeb549f31279d64dc61d5b4e4d500cc1ee0bf12 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 import base64
 import datetime
 import unittest
index 8e769d4bbc8598188a75c872d3cd0b213897fae7..834d64980b25c95121d3eea1172ae6b4cbd6edaa 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 import json
 
 from django.test import TestCase
index f119da057458314a5bc6f5006748746db45d7c5d..8faec6cddd8791b9cd98198c6a1071cde8da442e 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 from django.test import TestCase
 from django.urls import reverse
 
index 867d77f6210897be1d9debdcb08566610ef2bbdd..64631878e960821b44ead7ae01ccc8385bb62793 100644 (file)
@@ -17,8 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-from __future__ import absolute_import
-
 from datetime import datetime as dt
 import re
 
index b02a65b6fecde9faad889fc5988ca003d821108a..11e5c3a2f800a4a133cc655f6b53991321304bab 100644 (file)
@@ -20,8 +20,6 @@
 # Patchwork XMLRPC interface
 #
 
-from __future__ import absolute_import
-
 import base64
 # NOTE(stephenfin) six does not seem to support this
 try: