diff options
author | Mathieu Bridon <[email protected]> | 2018-07-05 15:17:32 +0200 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-07-06 10:04:22 -0700 |
commit | 0f7b18fa0d353aab0a44082b1aca8d8c00df71a7 (patch) | |
tree | e511fe8f70b48ad5203e3a0e52d0dc1b086bfd91 /src/mesa/main/format_pack.py | |
parent | b3a42fa0667caeeebabd9e6aeb46a9534810c2f3 (diff) |
python: Use the print function
In Python 2, `print` was a statement, but it became a function in
Python 3.
Using print functions everywhere makes the script compatible with Python
versions >= 2.6, including Python 3.
Signed-off-by: Mathieu Bridon <[email protected]>
Acked-by: Eric Engestrom <[email protected]>
Acked-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/mesa/main/format_pack.py')
-rw-r--r-- | src/mesa/main/format_pack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/format_pack.py b/src/mesa/main/format_pack.py index 77ab16694ed..d3c8d24acd6 100644 --- a/src/mesa/main/format_pack.py +++ b/src/mesa/main/format_pack.py @@ -1,3 +1,4 @@ +from __future__ import print_function from mako.template import Template from sys import argv @@ -1001,4 +1002,4 @@ _mesa_pack_colormask(mesa_format format, const GLubyte colorMask[4], void *dst) template = Template(string); -print template.render(argv = argv[0:]) +print(template.render(argv = argv[0:])) |