summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2007-03-13 10:47:19 (GMT)
committerLars Gustäbel <lars@gustaebel.de>2007-03-13 10:47:19 (GMT)
commitc64e40215d556df635768f56f76d35c2bba7b300 (patch)
treef1c17a093df831096d2521037e79a1ff4ed87456 /Misc/NEWS
parentbdd0f39de559ddedc9d952020da71a8a6973c34c (diff)
downloadcpython-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/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index f06499a..d0ea40b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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}.