diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-02-14 09:09:27 -0800 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-02-14 19:23:53 +0000 |
commit | 9432fc79f47745232d9c3f1e9e0209e030bdde76 (patch) | |
tree | 6263b1295f58717316e3f9accd6ba7a6288fc0c0 | |
parent | 8eb6689c2059a6dc024db73a7f63f4bf68c617d5 (diff) |
templates: Remove last remains of the six module
I missed on use of six in a mako file, I've run `grep 'six\.' -rI` and
it shows no matches except in a couple of C files.
Closes: #33
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/piglit/merge_requests/227>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/merge_requests/227>
-rw-r--r-- | templates/testrun_info.mako | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/testrun_info.mako b/templates/testrun_info.mako index 202c7321b..02323330e 100644 --- a/templates/testrun_info.mako +++ b/templates/testrun_info.mako @@ -19,10 +19,10 @@ <td>totals</td> <td> <table> - % for key, value in sorted(six.iteritems(totals), key=lambda i: (i[1], i[0]), reverse=True): + % for key, value in sorted(totals.items(), key=lambda i: (i[1], i[0]), reverse=True): <tr><td>${key}</td><td>${value}</td></tr> % endfor - <tr><td>total</td><td>${sum(six.itervalues(totals))}</td></tr> + <tr><td>total</td><td>${sum(totals.values())}</td></tr> </table> </td> </tr> @@ -42,11 +42,11 @@ <td>info</td> <td> <table> - % for key, sub in sorted(six.iteritems(info)): + % for key, sub in sorted(info.items()): % if isinstance(sub, str): <tr><td>${str}</td></tr> % else: - % for subkey, value in sorted(six.iteritems(sub)): + % for subkey, value in sorted(sub.items()): <tr><td>${subkey}</td><td><pre>${value}</pre></td></tr> % endfor % endif |