[Xcb] [PATCH libxcb 06/18] c_client.py: fix indentation
Christian Linhart
chris at DemoRecorder.com
Mon Oct 13 08:30:54 PDT 2014
Nice cleanup.
Reviewed-by: Christian Linhart <chris at demorecorder.com>
On 10/12/14 20:58, Ran Benita wrote:
> (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
More information about the Xcb
mailing list