Helper function to place an object on a context stack
(obj, stack)
| 138 | |
| 139 | |
| 140 | def _set_context(obj, stack): |
| 141 | """Helper function to place an object on a context stack""" |
| 142 | if stack is None: |
| 143 | return obj |
| 144 | return stack.enter_context(obj) |
| 145 | |
| 146 | |
| 147 | def _open_input_files( |