mirror of https://github.com/python/cpython
Add note advising that 'filter' be used as a keyword-argument.
This commit is contained in:
parent
57a8689b55
commit
32074e337e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue