Return the next TarInfo object from TarFile object tarfile.
(cls, tarfile)
| 1287 | |
| 1288 | @classmethod |
| 1289 | def fromtarfile(cls, tarfile): |
| 1290 | """Return the next TarInfo object from TarFile object |
| 1291 | tarfile. |
| 1292 | """ |
| 1293 | buf = tarfile.fileobj.read(BLOCKSIZE) |
| 1294 | obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors) |
| 1295 | obj.offset = tarfile.fileobj.tell() - BLOCKSIZE |
| 1296 | return obj._proc_member(tarfile) |
| 1297 | |
| 1298 | #-------------------------------------------------------------------------- |
| 1299 | # The following are methods that are called depending on the type of a |
no test coverage detected