diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2016-03-29 17:50:26 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2016-03-31 16:03:59 -0700 |
commit | 823837e6d5b61c09c5315f2f8a9d1bfeeaf78c8f (patch) | |
tree | 527ee02aa858f8cbd462c8d2b5ccf05f6ffa137d | |
parent | 17b36a60eb1d5b40af04c458c1b45076ea0054ad (diff) |
glapi: glX_proto_common.py: use python's _ for unused values
Rather than using a variable called junk, use _ for unused unpacked
values. This is much more idiomatic.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
-rw-r--r-- | src/mapi/glapi/gen/glX_proto_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_common.py b/src/mapi/glapi/gen/glX_proto_common.py index 284b427179..8f5290d503 100644 --- a/src/mapi/glapi/gen/glX_proto_common.py +++ b/src/mapi/glapi/gen/glX_proto_common.py @@ -56,7 +56,7 @@ class glx_print_proto(gl_XML.gl_print_base): for param in func.parameterIterator(): if outputs_also or not param.is_output: if param.is_image(): - [dim, w, h, d, junk] = param.get_dimensions() + _, w, h, d, _ = param.get_dimensions() compsize = '__glImageSize(%s, %s, %s, %s, %s, %s)' % (w, h, d, param.img_format, param.img_type, param.img_target) if not param.img_send_null: |