summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2009-09-12 10:28:15 (GMT)
committerLars Gustäbel <lars@gustaebel.de>2009-09-12 10:28:15 (GMT)
commit21121e64b4245e51b85b9d2bc9b29acb86ae79eb (patch)
tree8ffeaf69afab8ef548aea364b49b6c86476f80ab /Misc
parentd4c7eb16475f6ca662120aeda4518051f031c0d8 (diff)
downloadcpython-21121e64b4245e51b85b9d2bc9b29acb86ae79eb.zip
cpython-21121e64b4245e51b85b9d2bc9b29acb86ae79eb.tar.gz
cpython-21121e64b4245e51b85b9d2bc9b29acb86ae79eb.tar.bz2
Issue #6856: Add a filter keyword argument to TarFile.add().
The filter argument must be a function that takes a TarInfo object argument, changes it and returns it again. If the function returns None the TarInfo object will be excluded from the archive. The exclude argument is deprecated from now on, because it does something similar but is not as flexible.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 4c38218..734bddf 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -366,6 +366,8 @@ Core and Builtins
Library
-------
+- Issue #6856: Add a filter keyword argument to TarFile.add().
+
- Issue #6163: Fixed HP-UX runtime library dir options in
distutils.unixcompiler. Initial patch by Sridhar Ratnakumar and
Michael Haubenwallner.