(self,data)
| 308 | self.fileobj.write(fname + b'\000') |
| 309 | |
| 310 | def write(self,data): |
| 311 | self._check_not_closed() |
| 312 | if self.mode != WRITE: |
| 313 | import errno |
| 314 | raise OSError(errno.EBADF, "write() on read-only GzipFile object") |
| 315 | |
| 316 | if self.fileobj is None: |
| 317 | raise ValueError("write() on closed GzipFile object") |
| 318 | |
| 319 | return self._buffer.write(data) |
| 320 | |
| 321 | def _write_raw(self, data): |
| 322 | # Called by our self._buffer underlying WriteBufferStream. |