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

Vinson Lee vlee at freedesktop.org
Fri Oct 23 01:20:56 PDT 2015


On Wed, Oct 21, 2015 at 10:20 AM,  <baker.dylan.c at gmail.com> wrote:
> From: Dylan Baker <baker.dylan.c at gmail.com>
>
> 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.1
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit

Reviewed-by: Vinson Lee <vlee at freedesktop.org>


More information about the Piglit mailing list