Return the next TarInfo object from TarFile object tarfile.
(cls, tarfile)
| 1340 | |
| 1341 | @classmethod |
| 1342 | def fromtarfile(cls, tarfile): |
| 1343 | """Return the next TarInfo object from TarFile object |
| 1344 | tarfile. |
| 1345 | """ |
| 1346 | buf = tarfile.fileobj.read(BLOCKSIZE) |
| 1347 | obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors) |
| 1348 | obj.offset = tarfile.fileobj.tell() - BLOCKSIZE |
| 1349 | return obj._proc_member(tarfile) |
| 1350 | |
| 1351 | #-------------------------------------------------------------------------- |
| 1352 | # The following are methods that are called depending on the type of a |
no test coverage detected