Set the environment for all nodes.
(self, environment)
| 217 | return self |
| 218 | |
| 219 | def set_environment(self, environment): |
| 220 | """Set the environment for all nodes.""" |
| 221 | todo = deque([self]) |
| 222 | while todo: |
| 223 | node = todo.popleft() |
| 224 | node.environment = environment |
| 225 | todo.extend(node.iter_child_nodes()) |
| 226 | return self |
| 227 | |
| 228 | def __eq__(self, other): |
| 229 | return type(self) is type(other) and \ |
no test coverage detected