Choose the right processing method depending on the type and call it.
(self, tarfile)
| 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 |
no test coverage detected