diff options
author | Eric Engestrom <eric@engestrom.ch> | 2018-11-08 19:00:04 +0000 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2018-11-08 20:17:27 +0000 |
commit | 1cdfa43c5cb7b18f2f384c7867e99737f7351f3d (patch) | |
tree | 7e937e87482062545dcde95cd1eb416b4e5871a0 /generated_tests | |
parent | 5b3566f78490026b38ff03d602655ce3afb5ecb1 (diff) |
python: add explicit utf-8 encoding
I went with `# coding=utf-8` as it was the most common format in the
existing code:
24 # coding=utf-8
21 ## coding=utf-8
19 # encoding=utf-8
9 ## encoding=utf-8
6 # -*- coding: utf-8 -*-
I added it as the first line after the shebang, if any.
Suggested-by: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'generated_tests')
22 files changed, 22 insertions, 0 deletions
diff --git a/generated_tests/gen_cl_common_builtins.py b/generated_tests/gen_cl_common_builtins.py index 19563eb43..72969b312 100644 --- a/generated_tests/gen_cl_common_builtins.py +++ b/generated_tests/gen_cl_common_builtins.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2013 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/generated_tests/gen_cl_int_builtins.py b/generated_tests/gen_cl_int_builtins.py index 03848f07b..28c441ee6 100644 --- a/generated_tests/gen_cl_int_builtins.py +++ b/generated_tests/gen_cl_int_builtins.py @@ -1,3 +1,4 @@ +# coding=utf-8 from __future__ import print_function, division, absolute_import import os from genclbuiltins import gen, DATA_SIZES, MAX_VALUES, MAX, MIN, BMIN, BMAX, \ diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py index 98950c3ac..566b2dcf3 100644 --- a/generated_tests/gen_cl_math_builtins.py +++ b/generated_tests/gen_cl_math_builtins.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2013 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/generated_tests/gen_cl_relational_builtins.py b/generated_tests/gen_cl_relational_builtins.py index b9cdbe508..3f0ea49cc 100644 --- a/generated_tests/gen_cl_relational_builtins.py +++ b/generated_tests/gen_cl_relational_builtins.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2013 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/generated_tests/gen_cl_shuffle2_builtins.py b/generated_tests/gen_cl_shuffle2_builtins.py index 0c729361b..79ded0388 100644 --- a/generated_tests/gen_cl_shuffle2_builtins.py +++ b/generated_tests/gen_cl_shuffle2_builtins.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation diff --git a/generated_tests/gen_cl_shuffle_builtins.py b/generated_tests/gen_cl_shuffle_builtins.py index 795c2d608..4df8b3d55 100644 --- a/generated_tests/gen_cl_shuffle_builtins.py +++ b/generated_tests/gen_cl_shuffle_builtins.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation diff --git a/generated_tests/gen_cl_store_tests.py b/generated_tests/gen_cl_store_tests.py index 52a722ed3..fd515c3ac 100644 --- a/generated_tests/gen_cl_store_tests.py +++ b/generated_tests/gen_cl_store_tests.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2013 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/generated_tests/gen_cl_vload_tests.py b/generated_tests/gen_cl_vload_tests.py index 46410904d..d134a3711 100644 --- a/generated_tests/gen_cl_vload_tests.py +++ b/generated_tests/gen_cl_vload_tests.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2016 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/generated_tests/gen_cl_vstore_tests.py b/generated_tests/gen_cl_vstore_tests.py index 724f7a2b2..4e39c6a90 100644 --- a/generated_tests/gen_cl_vstore_tests.py +++ b/generated_tests/gen_cl_vstore_tests.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2016 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/generated_tests/gen_const_builtin_equal_tests.py b/generated_tests/gen_const_builtin_equal_tests.py index edfff8bd8..6fbd5be21 100644 --- a/generated_tests/gen_const_builtin_equal_tests.py +++ b/generated_tests/gen_const_builtin_equal_tests.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2010, 2014 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/generated_tests/gen_outerproduct_invalid_params.py b/generated_tests/gen_outerproduct_invalid_params.py index 4db09bd1b..c6b4bba84 100644 --- a/generated_tests/gen_outerproduct_invalid_params.py +++ b/generated_tests/gen_outerproduct_invalid_params.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2014 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/generated_tests/gen_outerproduct_tests.py b/generated_tests/gen_outerproduct_tests.py index 0948144d9..0828e4b7d 100644 --- a/generated_tests/gen_outerproduct_tests.py +++ b/generated_tests/gen_outerproduct_tests.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2014 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/generated_tests/gen_texture_lod_tests.py b/generated_tests/gen_texture_lod_tests.py index 2bfedf748..eb286b65c 100644 --- a/generated_tests/gen_texture_lod_tests.py +++ b/generated_tests/gen_texture_lod_tests.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2014 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/generated_tests/gen_variable_index_read_tests.py b/generated_tests/gen_variable_index_read_tests.py index cc6f49bdb..09e9b558b 100644 --- a/generated_tests/gen_variable_index_read_tests.py +++ b/generated_tests/gen_variable_index_read_tests.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2015 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/generated_tests/gen_variable_index_write_tests.py b/generated_tests/gen_variable_index_write_tests.py index acf892307..15cb7bccf 100644 --- a/generated_tests/gen_variable_index_write_tests.py +++ b/generated_tests/gen_variable_index_write_tests.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2015-2016 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/generated_tests/genclbuiltins.py b/generated_tests/genclbuiltins.py index 25f2f7a9a..c5ebaeb0a 100644 --- a/generated_tests/genclbuiltins.py +++ b/generated_tests/genclbuiltins.py @@ -1,3 +1,4 @@ +# coding=utf-8 from __future__ import print_function, division, absolute_import import os diff --git a/generated_tests/modules/__init__.py b/generated_tests/modules/__init__.py index 11e926b37..293fafd17 100644 --- a/generated_tests/modules/__init__.py +++ b/generated_tests/modules/__init__.py @@ -1,3 +1,4 @@ +# coding=utf-8 import importlib import os import sys diff --git a/generated_tests/modules/utils.py b/generated_tests/modules/utils.py index 5495ad800..fc4f77901 100644 --- a/generated_tests/modules/utils.py +++ b/generated_tests/modules/utils.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2014 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/generated_tests/random_ubo-arb_uniform_buffer_object.py b/generated_tests/random_ubo-arb_uniform_buffer_object.py index d9cdb5d5a..c9bbdc451 100644 --- a/generated_tests/random_ubo-arb_uniform_buffer_object.py +++ b/generated_tests/random_ubo-arb_uniform_buffer_object.py @@ -1,4 +1,5 @@ #!/usr/bin/env python2 +# coding=utf-8 # Copyright (c) 2014 Intel Corporation # diff --git a/generated_tests/random_ubo.py b/generated_tests/random_ubo.py index 31d0f8523..042b8b7a7 100644 --- a/generated_tests/random_ubo.py +++ b/generated_tests/random_ubo.py @@ -1,4 +1,5 @@ #!/usr/bin/env python2 +# coding=utf-8 # Copyright (c) 2014 Intel Corporation # diff --git a/generated_tests/random_ubo_trim.py b/generated_tests/random_ubo_trim.py index 438d9c711..5ae21bf06 100644 --- a/generated_tests/random_ubo_trim.py +++ b/generated_tests/random_ubo_trim.py @@ -1,4 +1,5 @@ #!/usr/bin/env python2 +# coding=utf-8 # Copyright (c) 2014 Intel Corporation # diff --git a/generated_tests/templates/__init__.py b/generated_tests/templates/__init__.py index c7f32c225..240004bfd 100644 --- a/generated_tests/templates/__init__.py +++ b/generated_tests/templates/__init__.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2014-2016 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy |