Commit 32074e33 authored by Raymond Hettinger's avatar Raymond Hettinger

Add note advising that 'filter' be used as a keyword-argument.

parent 57a8689b
......@@ -419,7 +419,9 @@ be finalized; only the internally used file object will be closed. See the
.. deprecated:: 2.7
The *exclude* parameter is deprecated, please use the *filter* parameter
instead.
instead. For maximum portability, *filter* should be used as a keyword
argument rather than as a positional argument so that code won't be
affected when *exclude* is ultimately removed.
.. method:: TarFile.addfile(tarinfo, fileobj=None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment