Commit 1cdfa43c authored by Eric Engestrom's avatar Eric Engestrom

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's avatarDylan Baker <dylan@pnwbakers.com>
Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker's avatarDylan Baker <dylan@pnwbakers.com>
parent 5b3566f7
# coding=utf-8
# #
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
......
# coding=utf-8
# Copyright (c) 2014-2016 Intel Corporation # Copyright (c) 2014-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2014, 2016 Intel Corporation # Copyright (c) 2014, 2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2015-2016 Intel Corporation # Copyright (c) 2015-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2014, 2016-2017 Intel Corporation # Copyright (c) 2014, 2016-2017 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2014-2016 Intel Corporation # Copyright (c) 2014-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2015-2016 Intel Corporation # Copyright (c) 2015-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2016 Intel Corporation # Copyright (c) 2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2014-2016 Intel Corporation # Copyright (c) 2014-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2013-2016 Intel Corporation # Copyright (c) 2013-2016 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Copyright (c) 2016 Broadcom # Copyright (c) 2016 Broadcom
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Copyright (c) 2015 Intel Corporation # Copyright (c) 2015 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2014-2016 Intel Corporation # Copyright (c) 2014-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2013-2016 Intel Corporation # Copyright (c) 2013-2016 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Copyright (c) 2016 Intel Corporation # Copyright (c) 2016 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Copyright (c) 2015-2016 Intel Corporation # Copyright (c) 2015-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without # files (the "Software"), to deal in the Software without
......
# coding=utf-8
# Copyright (c) 2015-2016 Intel Corporation # Copyright (c) 2015-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2016 Intel Corporation # Copyright (c) 2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without # files (the "Software"), to deal in the Software without
......
# coding=utf-8
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without # files (the "Software"), to deal in the Software without
......
# coding=utf-8
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without # files (the "Software"), to deal in the Software without
......
# coding=utf-8
# Copyright (c) 2013, 2015 Intel Corporation # Copyright (c) 2013, 2015 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Copyright (c) 2015-2016 Intel Corporation # Copyright (c) 2015-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright 2013-2016 Intel Corporation # Copyright 2013-2016 Intel Corporation
# Copyright 2013, 2014 Advanced Micro Devices # Copyright 2013, 2014 Advanced Micro Devices
# Copyright 2014 VMWare # Copyright 2014 VMWare
......
# coding=utf-8
# Copyright 2013-2016 Intel Corporation # Copyright 2013-2016 Intel Corporation
# Copyright 2013, 2014 Advanced Micro Devices # Copyright 2013, 2014 Advanced Micro Devices
# Copyright 2014 VMWare # Copyright 2014 VMWare
......
# coding=utf-8
# Copyright (c) 2016-2016 Intel Corporation # Copyright (c) 2016-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
......
# coding=utf-8
# Copyright 2013-2016 Intel Corporation # Copyright 2013-2016 Intel Corporation
# Copyright 2013, 2014 Advanced Micro Devices # Copyright 2013, 2014 Advanced Micro Devices
# Copyright 2014 VMWare # Copyright 2014 VMWare
......
# coding=utf-8
# Copyright (c) 2014,2016 Intel Corporation # Copyright (c) 2014,2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# #
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
......
# coding=utf-8
# Copyright 2014-2016,2018 Intel Corporation # Copyright 2014-2016,2018 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without # files (the "Software"), to deal in the Software without
......
# coding=utf-8
# Copyright 2016 Intel Corporation # Copyright 2016 Intel Corporation
# Copyright 2013, 2014 Advanced Micro Devices, Inc. # Copyright 2013, 2014 Advanced Micro Devices, Inc.
# #
......
# coding=utf-8
# Copyright 2016 Intel Corporation # Copyright 2016 Intel Corporation
# Copyright 2014 Advanced Micro Devices, Inc. # Copyright 2014 Advanced Micro Devices, Inc.
# #
......
# coding=utf-8
# Copyright 2016 Intel Corporation # Copyright 2016 Intel Corporation
# Copyright 2014 Advanced Micro Devices, Inc. # Copyright 2014 Advanced Micro Devices, Inc.
# #
......
# coding=utf-8
# Copyright (c) 2015-2016 Intel Corporation # Copyright (c) 2015-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# #
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
......
# coding=utf-8
# Copyright (C) 2012, 2014-2016 Intel Corporation # Copyright (C) 2012, 2014-2016 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
......
# coding=utf-8
# Copyright (c) 2015-2016 Intel Corporation # Copyright (c) 2015-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright 2013 Advanced Micro Devices, Inc. # Copyright 2013 Advanced Micro Devices, Inc.
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
from __future__ import print_function, division, absolute_import from __future__ import print_function, division, absolute_import
import os import os
from genclbuiltins import gen, DATA_SIZES, MAX_VALUES, MAX, MIN, BMIN, BMAX, \ from genclbuiltins import gen, DATA_SIZES, MAX_VALUES, MAX, MIN, BMIN, BMAX, \
......
# coding=utf-8
# Copyright 2013 Advanced Micro Devices, Inc. # Copyright 2013 Advanced Micro Devices, Inc.
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Copyright 2013 Advanced Micro Devices, Inc. # Copyright 2013 Advanced Micro Devices, Inc.
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"), # copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation # to deal in the Software without restriction, including without limitation
......
# coding=utf-8
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"), # copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation # to deal in the Software without restriction, including without limitation
......
# coding=utf-8
# Copyright 2013 Advanced Micro Devices, Inc. # Copyright 2013 Advanced Micro Devices, Inc.
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Copyright 2016 Advanced Micro Devices, Inc. # Copyright 2016 Advanced Micro Devices, Inc.
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Copyright 2016 Advanced Micro Devices, Inc. # Copyright 2016 Advanced Micro Devices, Inc.
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
# coding=utf-8
# Copyright (c) 2010, 2014 Intel Corporation # Copyright (c) 2010, 2014 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2014 Intel Corporation # Copyright (c) 2014 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2014 Intel Corporation # Copyright (c) 2014 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2014 Intel Corporation # Copyright (c) 2014 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2015 Intel Corporation # Copyright (c) 2015 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2015-2016 Intel Corporation # Copyright (c) 2015-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
from __future__ import print_function, division, absolute_import from __future__ import print_function, division, absolute_import
import os import os
......
# coding=utf-8
import importlib import importlib
import os import os
import sys import sys
......
# coding=utf-8
# Copyright (c) 2014 Intel Corporation # Copyright (c) 2014 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
#!/usr/bin/env python2 #!/usr/bin/env python2
# coding=utf-8
# Copyright (c) 2014 Intel Corporation # Copyright (c) 2014 Intel Corporation
# #
......
#!/usr/bin/env python2 #!/usr/bin/env python2
# coding=utf-8
# Copyright (c) 2014 Intel Corporation # Copyright (c) 2014 Intel Corporation
# #
......
#!/usr/bin/env python2 #!/usr/bin/env python2
# coding=utf-8
# Copyright (c) 2014 Intel Corporation # Copyright (c) 2014 Intel Corporation
# #
......
# coding=utf-8
# Copyright (c) 2014-2016 Intel Corporation # Copyright (c) 2014-2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
#!/usr/bin/env python #!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2014, 2016 Intel Corporation # Copyright (c) 2014, 2016 Intel Corporation
......
#!/usr/bin/env python #!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2014, 2016 Intel Corporation # Copyright (c) 2014, 2016 Intel Corporation
......
#!/usr/bin/env python #!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2014, 2016 Intel Corporation # Copyright (c) 2014, 2016 Intel Corporation
......
#!/usr/bin/env python #!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2014, 2016 Intel Corporation # Copyright (c) 2014, 2016 Intel Corporation
......
#!/usr/bin/env python #!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2014, 2016 Intel Corporation # Copyright (c) 2014, 2016 Intel Corporation
......
# coding=utf-8
# Copyright 2014 Intel Corporation # Copyright 2014 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
......
#!/usr/bin/env python #!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2016 Broadcom # Copyright (c) 2016 Broadcom
# #
......
# coding=utf-8
# Copyright 2014-2016 Intel Corporation # Copyright 2014-2016 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2015 Intel Corporation # Copyright (c) 2015 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2015 Intel Corporation # Copyright (c) 2015 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2015 Intel Corporation # Copyright (c) 2015 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright 2015 Intel Corporation # Copyright 2015 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright 2014, 2015 Intel Corporation # Copyright 2014, 2015 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright 2015 Intel Corporation # Copyright 2015 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright 2014-2016 Intel Corporation # Copyright 2014-2016 Intel Corporation
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# #
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
......
# coding=utf-8
"""A profile that runs only GLSLParserTest instances.""" """A profile that runs only GLSLParserTest instances."""
from __future__ import ( from __future__ import (
......
#!/usr/bin/env python #!/usr/bin/env python
# coding=utf-8
one_parameter_110 = [ one_parameter_110 = [
"radians", "radians",
......
# coding=utf-8
# Copyright (c) 2018 Intel Corporation # Copyright (c) 2018 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2018 Intel Corporation # Copyright (c) 2018 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# #
# Copyright (c) 2012 Intel Corporation # Copyright (c) 2012 Intel Corporation
# #
......
# coding=utf-8
# Copyright (c) 2017 Intel Corporation # Copyright (c) 2017 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2017 Intel Corporation # Copyright (c) 2017 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2017 Intel Corporation # Copyright (c) 2017 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
# coding=utf-8
# Copyright (c) 2017 Intel Corporation # Copyright (c) 2017 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
......
#!/usr/bin/env python #!/usr/bin/env python
# coding=utf-8
# #
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
......
# coding=utf-8
# Copyright (c) 2015, 2016 Intel Corporation