Open the file in bytes mode, read it, and close the file.
(self)
| 1389 | encoding, errors, newline) |
| 1390 | |
| 1391 | def read_bytes(self): |
| 1392 | """ |
| 1393 | Open the file in bytes mode, read it, and close the file. |
| 1394 | """ |
| 1395 | with self.open(mode='rb') as f: |
| 1396 | return f.read() |
| 1397 | |
| 1398 | def read_text(self, encoding=None, errors=None): |
| 1399 | """ |