summaryrefslogtreecommitdiffstats
path: root/Lib/test/testtar.tar
Commit message (Collapse)AuthorAgeFilesLines
* Make sure that xstar headers are read correctly.Lars Gustäbel2008-02-111-0/+0
|
* Added errors argument to TarFile class that allows the user toLars Gustäbel2007-05-271-0/+0
| | | | | | | | | | | | | | | | | | | | specify an error handling scheme for character conversion. Additional scheme "utf-8" in read mode. Unicode input filenames are now supported by design. The values of the pax_headers dictionary are now limited to unicode objects. Fixed: The prefix field is no longer used in PAX_FORMAT (in conformance with POSIX). Fixed: In read mode use a possible pax header size field. Fixed: Strip trailing slashes from pax header name values. Fixed: Give values in user-specified pax_headers precedence when writing. Added unicode tests. Added pax/regtype4 member to testtar.tar all possible number fields in a pax header. Added two chapters to the documentation about the different formats tarfile.py supports and how unicode issues are handled.
* This is the implementation of POSIX.1-2001 (pax) format read/writeLars Gustäbel2007-03-131-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | support. The TarInfo class now contains all necessary logic to process and create tar header data which has been moved there from the TarFile class. The fromtarfile() method was added. The new path and linkpath properties are aliases for the name and linkname attributes in correspondence to the pax naming scheme. The TarFile constructor and classmethods now accept a number of keyword arguments which could only be set as attributes before (e.g. dereference, ignore_zeros). The encoding and pax_headers arguments were added for pax support. There is a new tarinfo keyword argument that allows using subclassed TarInfo objects in TarFile. The boolean TarFile.posix attribute is deprecated, because now three tar formats are supported. Instead, the desired format for writing is specified using the constants USTAR_FORMAT, GNU_FORMAT and PAX_FORMAT as the format keyword argument. This change affects TarInfo.tobuf() as well. The test suite has been heavily reorganized and partially rewritten. A new testtar.tar was added that contains sample data in many formats from 4 different tar programs. Some bugs and quirks that also have been fixed: Directory names do no longer have a trailing slash in TarInfo.name or TarFile.getnames(). Adding the same file twice does not create a hardlink file member. The TarFile constructor does no longer need a name argument. The TarFile._mode attribute was renamed to mode and contains either 'r', 'w' or 'a'.
* Patch #1484695: Update the tarfile module to version 0.8. This fixesGeorg Brandl2006-05-101-0/+0
| | | | | a couple of issues, notably handling of long file names using the GNU LONGNAME extension.
* SF patch 995225: tarfile.py fix for bug #990325Tim Peters2004-07-221-0/+0
| | | | | Removes CVS keywords from this binary file, so that test_tarfile passes regardless of whether Python is checked out with -kk.
* SF #651082, tarfile module implementation from Lars GustäbelNeal Norwitz2003-01-051-0/+0