summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Baker <dylanx.c.baker@intel.com>2014-12-12 16:44:54 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2015-01-28 12:08:10 -0800
commit5fda6adfbaebe74962337c193ace342f352d24dc (patch)
treef0f98c02bd976aafdec951cc61989d6263918731 /tests
parent254e3c2497ea4ae1532072610ba5879e0f05d7b9 (diff)
gen_dispatch.py: sort imports into groups
PEP8 specifies that imports should be sorted into groups, separated by a blank line. The first should by core modules, the second should be system wide modules, and the third local modules. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/util/gen_dispatch.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/util/gen_dispatch.py b/tests/util/gen_dispatch.py
index 2623b7da4..34fd83f63 100644
--- a/tests/util/gen_dispatch.py
+++ b/tests/util/gen_dispatch.py
@@ -27,13 +27,14 @@ Generate C source code from Khronos XML.
from __future__ import print_function
import argparse
-import mako.runtime
-import mako.template
import os.path
import re
import sys
from collections import namedtuple
+import mako.runtime
+import mako.template
+
PIGLIT_TOP_DIR = os.path.join(os.path.dirname(__file__), '..', '..')
sys.path.append(PIGLIT_TOP_DIR)