(self, v)
| 1533 | self.fh.write(asunicode(v)) |
| 1534 | |
| 1535 | def first_write(self, v): |
| 1536 | try: |
| 1537 | self.write_normal(v) |
| 1538 | self.write = self.write_normal |
| 1539 | except TypeError: |
| 1540 | # input is probably a bytestream |
| 1541 | self.write_bytes(v) |
| 1542 | self.write = self.write_bytes |
| 1543 | |
| 1544 | own_fh = False |
| 1545 | if isinstance(fname, os.PathLike): |
nothing calls this directly
no test coverage detected