Open the file in bytes mode, read it, and close the file.
(self)
| 1044 | return io.open(self, mode, buffering, encoding, errors, newline) |
| 1045 | |
| 1046 | def read_bytes(self): |
| 1047 | """ |
| 1048 | Open the file in bytes mode, read it, and close the file. |
| 1049 | """ |
| 1050 | with self.open(mode='rb') as f: |
| 1051 | return f.read() |
| 1052 | |
| 1053 | def read_text(self, encoding=None, errors=None): |
| 1054 | """ |
no test coverage detected