MCPcopy Index your code
hub / github.com/RustPython/RustPython / fromtarfile

Method fromtarfile

Lib/tarfile.py:1342–1349  ·  view source on GitHub ↗

Return the next TarInfo object from TarFile object tarfile.

(cls, tarfile)

Source from the content-addressed store, hash-verified

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

Callers 4

_proc_gnulongMethod · 0.95
_proc_paxMethod · 0.95
__init__Method · 0.80
nextMethod · 0.80

Calls 4

frombufMethod · 0.80
_proc_memberMethod · 0.80
readMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected