[Xcb-commit] libxcb: src
Christian Linhart
clinhart at kemper.freedesktop.org
Sun Mar 15 02:09:58 PDT 2015
src/c_client.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 12d23b934f189607ad77667834205dfcf89a41f0
Author: Ran Benita <ran234 at gmail.com>
Date: Sun Oct 12 21:58:04 2014 +0300
c_client.py: simplify maximum expression
Signed-off-by: Ran Benita <ran234 at gmail.com>
Reviewed-by: Christian Linhart <chris at demorecorder.com>
diff --git a/src/c_client.py b/src/c_client.py
index 2042ce0..b5d3cf2 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -1338,8 +1338,7 @@ def _c_serialize(context, self):
if not field.type.fixed_size() or self.is_switch:
variable_size_fields += 1
# determine maxtypelen
- for p in params:
- maxtypelen = max(maxtypelen, len(p[0]) + len(p[1]))
+ maxtypelen = max(len(p[0]) + len(p[1]) for p in params)
# write to .c/.h
indent = ' '*(len(func_name)+2)
More information about the xcb-commit
mailing list