From 18ff453edd42712ea4d1e7218bbe8829f9f4caba Mon Sep 17 00:00:00 2001 From: Christian Linhart Date: Sun, 2 Nov 2014 13:46:58 +0100 Subject: [PATCH] _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 Reviewed-by: Ran Benita Message-ID: <545627C2.3050608@DemoRecorder.com> Patch-Thread-Subject: [Xcb] [PATCHSET] ListInputDevices revision 2 Patch-Set: ListInputDevices Patch-Number: libxcb 9/9 Patch-Version: V1 --- src/c_client.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/c_client.py b/src/c_client.py index 5a41f9a..21359b5 100644 --- a/src/c_client.py +++ b/src/c_client.py @@ -568,11 +568,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: -- 2.34.1