mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Add note advising that 'filter' be used as a keyword-argument.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user