summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2026-03-09 09:20:20 +0000
committerJulian Andres Klode <jak@debian.org>2026-03-09 09:20:20 +0000
commit4959613e23bacb58e8ac32b03aaad04ac4817c59 (patch)
tree11843566337882c764467057a78fbd5acf5cdf4c /doc
parent07481e91ceaf7aa55249a18163a066c939573c24 (diff)
parent7d6a80507b54c10a380655072bef395033dff254 (diff)
Merge branch 'fix-oom-killer' into 'main'HEADmain
tarfile: add extract_data flag to go() and test cases, and other fixes See merge request apt-team/python-apt!108
Diffstat (limited to 'doc')
-rw-r--r--doc/source/library/apt_inst.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/source/library/apt_inst.rst b/doc/source/library/apt_inst.rst
index 6ba330a3..cf0853dc 100644
--- a/doc/source/library/apt_inst.rst
+++ b/doc/source/library/apt_inst.rst
@@ -176,7 +176,7 @@ Tar Archives
Return the contents of the member, as a bytes object. Raise
LookupError if there is no member with the given name.
- .. method:: go(callback: callable[, member: str]) -> True
+ .. method:: go(callback: callable[, member: str, extract_data: bool]) -> True
Go through the archive and call the callable *callback* for each
member with 2 arguments. The first argument is the :class:`TarMember`
@@ -186,6 +186,9 @@ Tar Archives
which call the callback. If not specified, it will be called for all
members. If specified and not found, LookupError will be raised.
+ The optional parameter *extract_data* can be set to ``False`` to not
+ extract data.
+
.. class:: TarMember
Represent a single member of a 'tar' archive.