[Piglit] [PATCH] tests/sanity: declare encoding of file for python 2
Vinson Lee
vlee at freedesktop.org
Sat Jul 14 22:29:16 UTC 2018
On Wed, Jul 11, 2018 at 9:57 AM, Dylan Baker <dylan at pnwbakers.com> wrote:
> Python 2 assumes that files are encoded ascii unless they declare a
> different encoding, python 3 assumes files are encoded utf-8 unless they
> declare a different encoding.
>
> Cc: vlee at freedesktop.org
> ---
> tests/sanity.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/sanity.py b/tests/sanity.py
> index 13f7859fb..88bf27457 100644
> --- a/tests/sanity.py
> +++ b/tests/sanity.py
> @@ -1,3 +1,4 @@
> +# encoding=utf-8
> # Copyright © 2018 Intel Corporation
>
> # Permission is hereby granted, free of charge, to any person obtaining a copy
> --
> 2.18.0
>
Tested-by: Vinson Lee <vlee at freedesktop.org>
More information about the Piglit
mailing list