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 /framework | |
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 'framework')
39 files changed, 39 insertions, 0 deletions
diff --git a/framework/__init__.py b/framework/__init__.py index 3cf6d82d6..6995dbbfe 100644 --- a/framework/__init__.py +++ b/framework/__init__.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 diff --git a/framework/backends/__init__.py b/framework/backends/__init__.py index 488ad5515..afcb4c2bb 100644 --- a/framework/backends/__init__.py +++ b/framework/backends/__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 diff --git a/framework/backends/abstract.py b/framework/backends/abstract.py index 85abfa52d..447dba17d 100644 --- a/framework/backends/abstract.py +++ b/framework/backends/abstract.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 diff --git a/framework/backends/compression.py b/framework/backends/compression.py index 96565ecf1..819b3ef9a 100644 --- a/framework/backends/compression.py +++ b/framework/backends/compression.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/framework/backends/json.py b/framework/backends/json.py index 46ea6f7bc..556621e5f 100644 --- a/framework/backends/json.py +++ b/framework/backends/json.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2014, 2016-2017 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/framework/backends/junit.py b/framework/backends/junit.py index f1e14ef22..349e06db7 100644 --- a/framework/backends/junit.py +++ b/framework/backends/junit.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 diff --git a/framework/backends/register.py b/framework/backends/register.py index 8d30d3e7b..2e874fed2 100644 --- a/framework/backends/register.py +++ b/framework/backends/register.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/framework/compat.py b/framework/compat.py index 114ca3642..85030b8e6 100644 --- a/framework/compat.py +++ b/framework/compat.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2016 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/framework/core.py b/framework/core.py index 61643af95..bd81c9558 100644 --- a/framework/core.py +++ b/framework/core.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 diff --git a/framework/dmesg.py b/framework/dmesg.py index f327e92a9..a70983570 100644 --- a/framework/dmesg.py +++ b/framework/dmesg.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2013-2016 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/framework/driver_classifier.py b/framework/driver_classifier.py index dcef6cdbc..c36b35396 100644 --- a/framework/driver_classifier.py +++ b/framework/driver_classifier.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2016 Broadcom # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/framework/exceptions.py b/framework/exceptions.py index 6ca3ed773..5ea47c6a1 100644 --- a/framework/exceptions.py +++ b/framework/exceptions.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/framework/grouptools.py b/framework/grouptools.py index ce2e97c79..11b0af95a 100644 --- a/framework/grouptools.py +++ b/framework/grouptools.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 diff --git a/framework/log.py b/framework/log.py index 613460b7d..69e89bf7d 100644 --- a/framework/log.py +++ b/framework/log.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2013-2016 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/framework/monitoring.py b/framework/monitoring.py index 1060cc531..1eb213c3c 100644 --- a/framework/monitoring.py +++ b/framework/monitoring.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2016 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/framework/options.py b/framework/options.py index 0500640b2..0abe1f63d 100644 --- a/framework/options.py +++ b/framework/options.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/framework/profile.py b/framework/profile.py index 8d6fd0706..44c3fbd9f 100644 --- a/framework/profile.py +++ b/framework/profile.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 diff --git a/framework/programs/parsers.py b/framework/programs/parsers.py index 9e1d1e3bd..242d9c4a9 100644 --- a/framework/programs/parsers.py +++ b/framework/programs/parsers.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/framework/programs/print_commands.py b/framework/programs/print_commands.py index 511ccdb51..8a2e2669a 100644 --- a/framework/programs/print_commands.py +++ b/framework/programs/print_commands.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2016 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/framework/programs/run.py b/framework/programs/run.py index 23cb5e188..df6ebe7aa 100644 --- a/framework/programs/run.py +++ b/framework/programs/run.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 diff --git a/framework/programs/summary.py b/framework/programs/summary.py index 1467f9af7..81a2eb72c 100644 --- a/framework/programs/summary.py +++ b/framework/programs/summary.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 diff --git a/framework/results.py b/framework/results.py index 31cb8dff3..214971735 100644 --- a/framework/results.py +++ b/framework/results.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 diff --git a/framework/status.py b/framework/status.py index c69c50ae0..14f058804 100644 --- a/framework/status.py +++ b/framework/status.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2013, 2015 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/framework/summary/__init__.py b/framework/summary/__init__.py index e24b26890..10ae4534b 100644 --- a/framework/summary/__init__.py +++ b/framework/summary/__init__.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/framework/summary/common.py b/framework/summary/common.py index 5af692703..f62dcedf0 100644 --- a/framework/summary/common.py +++ b/framework/summary/common.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2013-2016 Intel Corporation # Copyright 2013, 2014 Advanced Micro Devices # Copyright 2014 VMWare diff --git a/framework/summary/console_.py b/framework/summary/console_.py index a51a54efc..f789bdef6 100644 --- a/framework/summary/console_.py +++ b/framework/summary/console_.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2013-2016 Intel Corporation # Copyright 2013, 2014 Advanced Micro Devices # Copyright 2014 VMWare diff --git a/framework/summary/feature.py b/framework/summary/feature.py index 257198ad7..873ff10fc 100644 --- a/framework/summary/feature.py +++ b/framework/summary/feature.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (c) 2016-2016 Intel Corporation # Permission is hereby granted, free of charge, to any person diff --git a/framework/summary/html_.py b/framework/summary/html_.py index f0cc6b639..c9efe2081 100644 --- a/framework/summary/html_.py +++ b/framework/summary/html_.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2013-2016 Intel Corporation # Copyright 2013, 2014 Advanced Micro Devices # Copyright 2014 VMWare diff --git a/framework/test/__init__.py b/framework/test/__init__.py index d305929d5..daf3b6d41 100644 --- a/framework/test/__init__.py +++ b/framework/test/__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 diff --git a/framework/test/base.py b/framework/test/base.py index f187c0210..6e719cc78 100644 --- a/framework/test/base.py +++ b/framework/test/base.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 diff --git a/framework/test/deqp.py b/framework/test/deqp.py index 042a522b2..5db2a922f 100644 --- a/framework/test/deqp.py +++ b/framework/test/deqp.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2014-2016,2018 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/framework/test/glsl_parser_test.py b/framework/test/glsl_parser_test.py index 1cce65036..ef89fe062 100644 --- a/framework/test/glsl_parser_test.py +++ b/framework/test/glsl_parser_test.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 diff --git a/framework/test/gtest.py b/framework/test/gtest.py index b331a2fb3..dbb461368 100644 --- a/framework/test/gtest.py +++ b/framework/test/gtest.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2016 Intel Corporation # Copyright 2013, 2014 Advanced Micro Devices, Inc. # diff --git a/framework/test/oclconform.py b/framework/test/oclconform.py index 0a644995d..65b10b2b8 100644 --- a/framework/test/oclconform.py +++ b/framework/test/oclconform.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2016 Intel Corporation # Copyright 2014 Advanced Micro Devices, Inc. # diff --git a/framework/test/opencv.py b/framework/test/opencv.py index a31d5626b..3cbdb02f8 100644 --- a/framework/test/opencv.py +++ b/framework/test/opencv.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright 2016 Intel Corporation # Copyright 2014 Advanced Micro Devices, Inc. # diff --git a/framework/test/opengl.py b/framework/test/opengl.py index 3c8460e28..0566fb0a8 100644 --- a/framework/test/opengl.py +++ b/framework/test/opengl.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/framework/test/piglit_test.py b/framework/test/piglit_test.py index 83398bf6a..f52b0150a 100644 --- a/framework/test/piglit_test.py +++ b/framework/test/piglit_test.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 diff --git a/framework/test/shader_test.py b/framework/test/shader_test.py index 4487e5d19..3f6f7bb0f 100644 --- a/framework/test/shader_test.py +++ b/framework/test/shader_test.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Copyright (C) 2012, 2014-2016 Intel Corporation # # Permission is hereby granted, free of charge, to any person diff --git a/framework/wflinfo.py b/framework/wflinfo.py index a568bc344..a6bb9e855 100644 --- a/framework/wflinfo.py +++ b/framework/wflinfo.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 |