From 295172188612c41fa3bfed89f7aa4c4febafd23c Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 12 Sep 2023 20:45:24 +1000 Subject: [PATCH] Don't strip selector query keys to allow for explicit "mistakes" in key names. --- src/ifcopenshell-python/ifcopenshell/util/selector.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/selector.py b/src/ifcopenshell-python/ifcopenshell/util/selector.py index cde17eee33..0cc3fe537c 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/selector.py +++ b/src/ifcopenshell-python/ifcopenshell/util/selector.py @@ -272,8 +272,6 @@ def set_element_value(ifc_file, element, query, value): keys = GetElementTransformer().transform(get_element_grammar.parse(query)) for i, key in enumerate(keys): - if isinstance(key, str): - key = key.strip() if element is None: return if key == "type": @@ -789,8 +787,6 @@ class Selector: def get_element_value(cls, element, keys): value = element for key in keys: - if isinstance(key, str): - key = key.strip() if value is None: return if key == "type":