(file, mode='r', *args, **kwargs)
| 30 | |
| 31 | |
| 32 | def _io_wrapper(file, mode='r', *args, **kwargs): |
| 33 | if mode == 'r': |
| 34 | return TextIOWrapper(file, *args, **kwargs) |
| 35 | elif mode == 'rb': |
| 36 | return file |
| 37 | raise ValueError(f"Invalid mode value '{mode}', only 'r' and 'rb' are supported") |
| 38 | |
| 39 | |
| 40 | class CompatibilityFiles: |
no test coverage detected
searching dependent graphs…