Skip to content

Commit 80d6d15

Browse files
madducksimu
authored andcommitted
Fix propagation of negations
While _negations in the Applications type was being properly initialised, it wasn't copied on merges. This simple fix merely extends the list, which should work just fine i.e. I don't think it makes sense to ensure uniqueness here. Closes: madduck#44 Signed-off-by: martin f. krafft <[email protected]>
1 parent 5246e6a commit 80d6d15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reclass/datatypes/applications.py

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def merge_unique(self, iterable):
5454
self._items.remove(negation)
5555
except ValueError:
5656
pass
57+
self._negations.extend(iterable._negations)
5758
iterable = iterable.as_list()
5859
for i in iterable:
5960
self.append_if_new(i)

0 commit comments

Comments
 (0)