From fd7d70ceeec91861e9ded9a7f01df0a978dcbaa5 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 15 Jun 2012 23:16:30 +0200 Subject: Merge patch from Colin Watson to handle non-UTF8 tag files in Python 3, by using bytes instead of str when requested; and document this in the RST documentation (Closes: #656288) --- doc/source/library/apt_pkg.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/source') diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst index bba7491f..b5ee1a53 100644 --- a/doc/source/library/apt_pkg.rst +++ b/doc/source/library/apt_pkg.rst @@ -1904,7 +1904,7 @@ thereof and provides a function :func:`RewriteSection` which takes a :class:`TagSection()` object and sorting information and outputs a sorted section as a string. -.. class:: TagFile(file) +.. class:: TagFile(file, bytes: bool = False) An object which represents a typical debian control file. Can be used for Packages, Sources, control, Release, etc. Such an object provides two @@ -1921,6 +1921,10 @@ section as a string. .. versionchanged:: 0.7.100 Added support for using gzip files, via :class:`gzip.GzipFile` or any file containing a compressed gzip stream. + + .. versionadded:: 0.8.5 + + Added support for using bytes instead of str in Python 3 .. method:: next() -- cgit v1.2.3