(self, chunk)
| 525 | self._compname = b'not compressed' |
| 526 | |
| 527 | def _readmark(self, chunk): |
| 528 | nmarkers = _read_short(chunk) |
| 529 | # Some files appear to contain invalid counts. |
| 530 | # Cope with this by testing for EOF. |
| 531 | try: |
| 532 | for i in range(nmarkers): |
| 533 | id = _read_short(chunk) |
| 534 | pos = _read_long(chunk) |
| 535 | name = _read_string(chunk) |
| 536 | if pos or name: |
| 537 | # some files appear to have |
| 538 | # dummy markers consisting of |
| 539 | # a position 0 and name '' |
| 540 | self._markers.append((id, pos, name)) |
| 541 | except EOFError: |
| 542 | w = ('Warning: MARK chunk contains only %s marker%s instead of %s' % |
| 543 | (len(self._markers), '' if len(self._markers) == 1 else 's', |
| 544 | nmarkers)) |
| 545 | warnings.warn(w) |
| 546 | |
| 547 | class Aifc_write: |
| 548 | # Variables used in this class: |
no test coverage detected