python: Use spaces, not tabs
authorMathieu Bridon <bochecha@daitauha.fr>
Thu, 5 Jul 2018 13:17:33 +0000 (15:17 +0200)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 6 Jul 2018 17:04:55 +0000 (10:04 -0700)
Python 3 doesn't allow mixing spaces and tabs in a script, contrarily to
Python 2.

Signed-off-by: Mathieu Bridon <bochecha@daitauha.fr>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/mapi/glapi/gen/glX_proto_size.py

index 2b7cefd235741243b0c4f8951c82677911d4006f..284ee70e6184fff31e5ab5aaa3ff9488727d4a09 100644 (file)
@@ -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