(node, ctx)
| 95 | |
| 96 | |
| 97 | def get_eval_context(node, ctx): |
| 98 | if ctx is None: |
| 99 | if node.environment is None: |
| 100 | raise RuntimeError('if no eval context is passed, the ' |
| 101 | 'node must have an attached ' |
| 102 | 'environment.') |
| 103 | return EvalContext(node.environment) |
| 104 | return ctx |
| 105 | |
| 106 | |
| 107 | class Node(with_metaclass(NodeType, object)): |
no test coverage detected
searching dependent graphs…