[Xcb] [PATCH libxcb 06/18] c_client.py: fix indentation

Ran Benita ran234 at gmail.com
Sun Oct 12 11:58:08 PDT 2014


(Also remove unnecessary parens around the condition).

Signed-off-by: Ran Benita <ran234 at gmail.com>
---
 src/c_client.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/c_client.py b/src/c_client.py
index fa37772..7f768e0 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -1516,14 +1516,13 @@ def _c_accessors_list(self, field):
     '''
 
     def get_align_pad(field):
-            prev = field.prev_varsized_field
-            prev_prev = field.prev_varsized_field.prev_varsized_field
-
-            if (prev.type.is_pad and prev.type.align > 0 and prev_prev is not None):
-                return (prev_prev, '((-prev.index) & (%d - 1))' % prev.type.align)
-            else:
-                return (prev, None)
+        prev = field.prev_varsized_field
+        prev_prev = field.prev_varsized_field.prev_varsized_field
 
+        if prev.type.is_pad and prev.type.align > 0 and prev_prev is not None:
+            return (prev_prev, '((-prev.index) & (%d - 1))' % prev.type.align)
+        else:
+            return (prev, None)
 
     list = field.type
     c_type = self.c_type
-- 
2.1.2



More information about the Xcb mailing list