diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2007-03-13 10:47:19 (GMT) |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2007-03-13 10:47:19 (GMT) |
commit | c64e40215d556df635768f56f76d35c2bba7b300 (patch) | |
tree | f1c17a093df831096d2521037e79a1ff4ed87456 /Misc/NEWS | |
parent | bdd0f39de559ddedc9d952020da71a8a6973c34c (diff) | |
download | cpython-c64e40215d556df635768f56f76d35c2bba7b300.zip cpython-c64e40215d556df635768f56f76d35c2bba7b300.tar.gz cpython-c64e40215d556df635768f56f76d35c2bba7b300.tar.bz2 |
This is the implementation of POSIX.1-2001 (pax) format read/write
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'.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -168,6 +168,9 @@ Core and builtins Library ------- +- Added support for the POSIX.1-2001 (pax) format to tarfile.py. Extended + and cleaned up the test suite. Added a new testtar.tar. + - Patch #1449244: Support Unicode strings in email.message.Message.{set_charset,get_content_charset}. |