[Mesa-dev] [PATCH 02/26] python: Use spaces, not tabs

Dylan Baker dylan at pnwbakers.com
Thu Jul 5 15:40:38 UTC 2018


Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

Quoting Mathieu Bridon (2018-07-05 06:17:33)
> Python 3 doesn't allow mixing spaces and tabs in a script, contrarily to
> Python 2.
> 
> Signed-off-by: Mathieu Bridon <bochecha at daitauha.fr>
> ---
>  src/mapi/glapi/gen/glX_proto_size.py | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/mapi/glapi/gen/glX_proto_size.py b/src/mapi/glapi/gen/glX_proto_size.py
> index 2b7cefd235..284ee70e61 100644
> --- a/src/mapi/glapi/gen/glX_proto_size.py
> +++ b/src/mapi/glapi/gen/glX_proto_size.py
> @@ -612,10 +612,10 @@ class PrintGlxReqSize_c(PrintGlxReqSize_common):
>                  if s == 0: s = 1
>  
>                  sig += "(%u,%u)" % (f.offset_of(p.counter), s)
> -               if size == '':
> -                   size = p.size_string()
> -               else:
> -                   size = "safe_add(%s, %s)" % (size, p.size_string())
> +                if size == '':
> +                    size = p.size_string()
> +                else:
> +                    size = "safe_add(%s, %s)" % (size, p.size_string())
>  
>          # If the calculated signature matches a function that has
>          # already be emitted, don't emit this function.  Instead, add
> -- 
> 2.17.1
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180705/2fd186b5/attachment.sig>


More information about the mesa-dev mailing list