MCPcopy Index your code
hub / github.com/python/cpython / _fromtarfile

Method _fromtarfile

Lib/tarfile.py:1361–1368  ·  view source on GitHub ↗

See dircheck documentation in _frombuf().

(cls, tarfile, *, dircheck=True)

Source from the content-addressed store, hash-verified

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

Callers 3

_proc_gnulongMethod · 0.95
_proc_paxMethod · 0.95
fromtarfileMethod · 0.80

Calls 4

_frombufMethod · 0.80
_proc_memberMethod · 0.80
readMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected