[Piglit] [PATCH 02/34] gen_builtin_uniform_tests.py: use __future__ functions

Vinson Lee vlee at freedesktop.org
Sat Feb 21 01:06:57 PST 2015


On Fri, Feb 20, 2015 at 6:17 PM, Dylan Baker <baker.dylan.c at gmail.com> wrote:
> This changes from using the python2 print statement to using the
> python3-like print function.
>
> Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
> ---
>  generated_tests/gen_builtin_uniform_tests.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests/gen_builtin_uniform_tests.py
> index 9bb3075..797d326 100644
> --- a/generated_tests/gen_builtin_uniform_tests.py
> +++ b/generated_tests/gen_builtin_uniform_tests.py
> @@ -44,6 +44,7 @@
>  # With the optional argument --names-only, it only outputs the names
>  # of the files; it doesn't generate them.
>
> +from __future__ import print_function
>  from builtin_function import *
>  import abc
>  import numpy
> @@ -706,7 +707,7 @@ def main():
>      for test in all_tests():
>          if not options.names_only:
>              test.generate_shader_test()
> -        print test.filename()
> +        print(test.filename())
>
>
>  if __name__ == '__main__':
> --
> 2.3.0
>
> _______________________________________________
> 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