Having the call
set(self.oid_to_path(oid, entries_parents) for oid in modified_by_one_parent_oids)
this works, but also adds None to the list if the function returns None
So modifying it to
set(self.oid_to_path(oid, entries_parents) for oid in modified_by_one_parent_oids if None != self.oid_to_path(oid, entries_parents))
also works, without the Nones.
However this has the drawback of calling the function twice. How to call it only once, and use some memoization instead?