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

Method _proc_member

Lib/tarfile.py:1381–1392  ·  view source on GitHub ↗

Choose the right processing method depending on the type and call it.

(self, tarfile)

Source from the content-addressed store, hash-verified

1379 # begin.
1380 # 3. Return self or another valid TarInfo object.
1381 def _proc_member(self, tarfile):
1382 """Choose the right processing method depending on
1383 the type and call it.
1384 """
1385 if self.type in (GNUTYPE_LONGNAME, GNUTYPE_LONGLINK):
1386 return self._proc_gnulong(tarfile)
1387 elif self.type == GNUTYPE_SPARSE:
1388 return self._proc_sparse(tarfile)
1389 elif self.type in (XHDTYPE, XGLTYPE, SOLARIS_XHDTYPE):
1390 return self._proc_pax(tarfile)
1391 else:
1392 return self._proc_builtin(tarfile)
1393
1394 def _proc_builtin(self, tarfile):
1395 """Process a builtin type or an unknown type which

Callers 1

_fromtarfileMethod · 0.80

Calls 4

_proc_gnulongMethod · 0.95
_proc_sparseMethod · 0.95
_proc_paxMethod · 0.95
_proc_builtinMethod · 0.95

Tested by

no test coverage detected