[Piglit] [PATCH 09/12] gen_dispatch.py: sort imports into groups

Dylan Baker baker.dylan.c at gmail.com
Tue Jan 13 17:48:19 PST 2015

From: Dylan Baker <dylanx.c.baker at intel.com>

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 at intel.com>
 tests/util/gen_dispatch.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/util/gen_dispatch.py b/tests/util/gen_dispatch.py
index 068b5db..46869f8 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__), '..', '..')

More information about the Piglit mailing list