🐛 Fix a logic error detected by a unit test
Hooray for tests! 🥳
This commit is contained in:
1 parent
d1668479c7
commit
dd4dae7e59
1 file changed
+1
-1
@@ -302,7 +302,7 @@ class HierarchicalChainMap:
|
||||
key = self._path_to_key(path)
|
||||
prefix = key + _CHAINMAP_SEP
|
||||
|
||||
if key in current: # and not self._has_prefix(prefix, current):
|
||||
if key in current and not self._has_prefix(prefix, current):
|
||||
# found it, return
|
||||
return current[key]
|
||||
|
||||
|
||||
Reference in new issue
Block a user