summaryrefslogtreecommitdiff
path: root/patchwork/templatetags
diff options
context:
space:
mode:
authorStephen Finucane <stephen.finucane@intel.com>2015-11-26 18:24:59 +0000
committerStephen Finucane <stephen.finucane@intel.com>2015-12-03 22:08:53 +0000
commit6cb7c6c52ed0523de59178755057b9a1ae6dcce2 (patch)
tree8b33f311c8ae615464a1e4adba37c03214291ec9 /patchwork/templatetags
parentd5b37617f6830ae96d125547bcbc4cf28a8664a4 (diff)
downloadpatchwork-6cb7c6c52ed0523de59178755057b9a1ae6dcce2.tar
patchwork-6cb7c6c52ed0523de59178755057b9a1ae6dcce2.tar.gz
py3: Add required 'future' imports
These are quite limited as patchwork only supports Python 2.6+. As such, only the 'print_function' and 'absolute_import' statements are required. Found using 'modernize' Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'patchwork/templatetags')
-rw-r--r--patchwork/templatetags/listurl.py2
-rw-r--r--patchwork/templatetags/patch.py2
-rw-r--r--patchwork/templatetags/person.py2
-rw-r--r--patchwork/templatetags/syntax.py2
4 files changed, 8 insertions, 0 deletions
diff --git a/patchwork/templatetags/listurl.py b/patchwork/templatetags/listurl.py
index a52f4fd..9e6e9f1 100644
--- a/patchwork/templatetags/listurl.py
+++ b/patchwork/templatetags/listurl.py
@@ -17,6 +17,8 @@
# 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.html import escape
from django.utils.encoding import smart_str
diff --git a/patchwork/templatetags/patch.py b/patchwork/templatetags/patch.py
index af5e54d..79cc923 100644
--- a/patchwork/templatetags/patch.py
+++ b/patchwork/templatetags/patch.py
@@ -18,6 +18,8 @@
# 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
diff --git a/patchwork/templatetags/person.py b/patchwork/templatetags/person.py
index c337c74..b575689 100644
--- a/patchwork/templatetags/person.py
+++ b/patchwork/templatetags/person.py
@@ -17,6 +17,8 @@
# 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.html import escape
from django.utils.safestring import mark_safe
diff --git a/patchwork/templatetags/syntax.py b/patchwork/templatetags/syntax.py
index abdbb4d..bf90b87 100644
--- a/patchwork/templatetags/syntax.py
+++ b/patchwork/templatetags/syntax.py
@@ -17,6 +17,8 @@
# 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.html import escape
from django.utils.safestring import mark_safe