diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2009-09-12 10:28:15 (GMT) |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2009-09-12 10:28:15 (GMT) |
commit | 21121e64b4245e51b85b9d2bc9b29acb86ae79eb (patch) | |
tree | 8ffeaf69afab8ef548aea364b49b6c86476f80ab /Misc | |
parent | d4c7eb16475f6ca662120aeda4518051f031c0d8 (diff) | |
download | cpython-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/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |