[Mesa-dev] [PATCH 36/41] glapi: glX_proto_send.py: remove useless pass keyword
Ian Romanick
idr at freedesktop.org
Tue Apr 19 23:36:42 UTC 2016
That's weird. It looks like I added this in 66a5548f, but I have no
idea why. Even then I knew what pass was for. *shrug*
This patch is
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
On 03/31/2016 05:04 PM, Dylan Baker wrote:
> The pass keyword is the solution for python's whitespace significant
> code. It's used when something is needed for whitespace rules, but not
> for programming. Don't add it after actual code.
>
> Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
> ---
> src/mapi/glapi/gen/glX_proto_send.py | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py
> index 8fe0876..5388163 100644
> --- a/src/mapi/glapi/gen/glX_proto_send.py
> +++ b/src/mapi/glapi/gen/glX_proto_send.py
> @@ -440,7 +440,6 @@ class PrintGlxProtoStubs(glX_proto_common.glx_print_proto):
> self.printRenderFunction(func)
> elif func.glx_sop != 0 or func.glx_vendorpriv != 0:
> self.printSingleFunction(func, name)
> - pass
> else:
> print "/* Missing GLX protocol for %s. */" % (name)
>
>
More information about the mesa-dev
mailing list