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