[Piglit] [RFC 04/25] gen_tes_input_tests.py: Cleanup imports

Dylan Baker baker.dylan.c at gmail.com
Wed Oct 7 14:17:05 PDT 2015


one import per line per PEP8, and use the __future__ imports to enforce
python 2.x and python 3.x compatibility.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 generated_tests/gen_tes_input_tests.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/generated_tests/gen_tes_input_tests.py b/generated_tests/gen_tes_input_tests.py
index 3bd1787..110193a 100644
--- a/generated_tests/gen_tes_input_tests.py
+++ b/generated_tests/gen_tes_input_tests.py
@@ -40,7 +40,10 @@ This script outputs, to stdout, the name of each file it generates.
 
 """
 
-import os, sys, random
+from __future__ import print_function, absolute_import, division
+import os
+import sys
+import random
 
 
 class Test(object):
-- 
2.6.0



More information about the Piglit mailing list