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

Method _proc_member

Lib/tarfile.py:1362–1373  ·  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

1360 # begin.
1361 # 3. Return self or another valid TarInfo object.
1362 def _proc_member(self, tarfile):
1363 """Choose the right processing method depending on
1364 the type and call it.
1365 """
1366 if self.type in (GNUTYPE_LONGNAME, GNUTYPE_LONGLINK):
1367 return self._proc_gnulong(tarfile)
1368 elif self.type == GNUTYPE_SPARSE:
1369 return self._proc_sparse(tarfile)
1370 elif self.type in (XHDTYPE, XGLTYPE, SOLARIS_XHDTYPE):
1371 return self._proc_pax(tarfile)
1372 else:
1373 return self._proc_builtin(tarfile)
1374
1375 def _proc_builtin(self, tarfile):
1376 """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