summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2008-09-19 12:39:23 (GMT)
committerLars Gustäbel <lars@gustaebel.de>2008-09-19 12:39:23 (GMT)
commit5576091fc7c6724f569e1c8ea6a764ac285e6d86 (patch)
tree1ee48c67ca9e1e295233b9ad77319766389f7b54 /Doc/whatsnew
parent3134f14b1aa7a06242fc25775a0a46e4370c434a (diff)
downloadcpython-5576091fc7c6724f569e1c8ea6a764ac285e6d86.zip
cpython-5576091fc7c6724f569e1c8ea6a764ac285e6d86.tar.gz
cpython-5576091fc7c6724f569e1c8ea6a764ac285e6d86.tar.bz2
Correct information about the tarfile module.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/2.6.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index 04a54a2..9410e22 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -2453,18 +2453,18 @@ changes, or look through the Subversion logs for all the details.
by calling :func:`sys.getprofile` and :func:`sys.gettrace`.
(Contributed by Georg Brandl; :issue:`1648`.)
-* The :mod:`tarfile` module now supports POSIX.1-2001 (pax) and
- POSIX.1-1988 (ustar) format tarfiles, in addition to the GNU tar
- format that was already supported. The default format
- is GNU tar; specify the ``format`` parameter to open a file
- using a different format::
+* The :mod:`tarfile` module now supports POSIX.1-2001 (pax) tarfiles in
+ addition to the POSIX.1-1988 (ustar) and GNU tar formats that were
+ already supported. The default format is GNU tar; specify the
+ ``format`` parameter to open a file using a different format::
tar = tarfile.open("output.tar", "w",
format=tarfile.PAX_FORMAT)
- The new ``errors`` parameter specifies an error handling scheme for
- character conversions. ``'strict'``, ``'ignore'``, and
- ``'replace'`` are the three standard ways Python can handle errors,;
+ The new ``encoding`` and ``errors`` parameters specify an encoding and
+ an error handling scheme for character conversions. ``'strict'``,
+ ``'ignore'``, and ``'replace'`` are the three standard ways Python can
+ handle errors,;
``'utf-8'`` is a special value that replaces bad characters with
their UTF-8 representation. (Character conversions occur because the
PAX format supports Unicode filenames, defaulting to UTF-8 encoding.)