See dircheck documentation in _frombuf().
(cls, tarfile, *, dircheck=True)
| 1359 | |
| 1360 | @classmethod |
| 1361 | def _fromtarfile(cls, tarfile, *, dircheck=True): |
| 1362 | """ |
| 1363 | See dircheck documentation in _frombuf(). |
| 1364 | """ |
| 1365 | buf = tarfile.fileobj.read(BLOCKSIZE) |
| 1366 | obj = cls._frombuf(buf, tarfile.encoding, tarfile.errors, dircheck=dircheck) |
| 1367 | obj.offset = tarfile.fileobj.tell() - BLOCKSIZE |
| 1368 | return obj._proc_member(tarfile) |
| 1369 | |
| 1370 | #-------------------------------------------------------------------------- |
| 1371 | # The following are methods that are called depending on the type of a |
no test coverage detected