From: Christian Linhart Date: Thu, 30 Oct 2014 14:32:00 +0000 (+0100) Subject: _c_helper_fieldaccess_expr: remove handling for empty sep X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c225c8b168312cee61af2d0bea3bd36e7be65ac2;p=free-sw%2Fxcb%2Flibxcb _c_helper_fieldaccess_expr: remove handling for empty sep The loop-variable "sep" is never empty in function "_c_helper_fieldaccess_expr", after a fix elsewhere. Therefore I removed the handling of the case of "sep" being empty. Thanks to Ran Benita for the hint that this can be removed. Signed-off-by: Christian Linhart Message-ID: <1414679520-50871-3-git-send-email-chris@demorecorder.com> Patch-Thread-Subject: [Xcb] xinput: make ListInputDevices work, sumof with nested expr, ... Patch-Set: ListInputDevices Patch-Number: libxcb 9/9 Patch-Version: V1 Signed-off-by: Christian Linhart --- diff --git a/src/c_client.py b/src/c_client.py index c4b7d76..b0d9cad 100644 --- a/src/c_client.py +++ b/src/c_client.py @@ -578,11 +578,6 @@ def _c_helper_fieldaccess_expr(prefix, field=None): last_sep ='' for name, sep, obj in prefix: prefix_str += last_sep + name - if '' == sep: - sep = '->' - if ((obj.is_case_or_bitcase and obj.has_name) or # named bitcase - (obj.is_switch and len(obj.parents)>1)): - sep = '.' last_sep = sep if field is None: