(self)
| 124 | return self._name_mapping[filename] |
| 125 | |
| 126 | def close_all(self) -> None: |
| 127 | handlers = list(self._handlers) # make a copy |
| 128 | for fileh in handlers: |
| 129 | msg = f"Closing remaining open file: {fileh.filename}" |
| 130 | warnings.warn(UnclosedFileWarning(msg)) |
| 131 | fileh.close() |
| 132 | |
| 133 | |
| 134 | # Dict of opened files (keys are filenames and values filehandlers) |
nothing calls this directly
no test coverage detected