summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2012-06-15 23:16:30 +0200
committerJulian Andres Klode <jak@debian.org>2012-06-15 23:16:30 +0200
commitfd7d70ceeec91861e9ded9a7f01df0a978dcbaa5 (patch)
treeca27c49823f267d7e0cc06ccf5450d39b8b257b8 /doc/source
parent8210f0ea8ca7ffb5da909a6bb3e18fbd669fb264 (diff)
downloadpython-apt-fd7d70ceeec91861e9ded9a7f01df0a978dcbaa5.tar.gz
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)
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/library/apt_pkg.rst6
1 files changed, 5 insertions, 1 deletions
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()