summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2016-01-05 14:48:10 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2016-02-08 12:29:33 -0800
commitc9ae4f051e1d6d53d5a55b9b390ed668962c9aee (patch)
tree2566a0106df4af1b8f1b0aad4dec69ce19a86021 /templates
parent86b933a4f8c58a60ee9c542d1db39550a643a016 (diff)
python: use six unicode/bytes/str handling
This is not feature complete for python 3.x in and of itself, but it gets started by using six functions rather than str and unicode. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/feature.mako4
-rw-r--r--templates/index.mako5
2 files changed, 7 insertions, 2 deletions
diff --git a/templates/feature.mako b/templates/feature.mako
index ac9bc8677..9abd5bc31 100644
--- a/templates/feature.mako
+++ b/templates/feature.mako
@@ -2,6 +2,8 @@
import posixpath # this must be posixpath, since we want /'s not \'s
import re
+ from six.moves import range
+
def feat_result(result):
"""Percentage result string"""
@@ -41,7 +43,7 @@
## Status columns
## Create an additional column for each summary
- % for _ in xrange(len(results.results)):
+ % for _ in range(len(results.results)):
<col />
% endfor
</colgroup>
diff --git a/templates/index.mako b/templates/index.mako
index d2b84b5c0..690206fdf 100644
--- a/templates/index.mako
+++ b/templates/index.mako
@@ -2,6 +2,9 @@
import os
import posixpath # this must be posixpath, since we want /'s not \'s
import re
+
+ from six.moves import range
+
from framework import grouptools, status
def group_changes(test, current):
@@ -86,7 +89,7 @@
## Status columns
## Create an additional column for each summary
- % for _ in xrange(len(results.results)):
+ % for _ in range(len(results.results)):
<col />
% endfor
</colgroup>