summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-06-17 17:54:23 +0200
committerJulian Andres Klode <jak@debian.org>2015-06-17 17:54:23 +0200
commit178a68f5cdb9939113a5088cc8d2a201f1f22fb7 (patch)
tree665a051143d48a602e1c54ff6402adba1b95c5fd /doc
parent23e044e3dabc7e61553ce559245393c432dadcd4 (diff)
downloadpython-apt-178a68f5cdb9939113a5088cc8d2a201f1f22fb7.tar.gz
doc/source/library/apt_pkg.rst: Fix an example from old API to new API
Someone reported this to mvo.
Diffstat (limited to 'doc')
-rw-r--r--doc/source/library/apt_pkg.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst
index 7a69059b..c704db3b 100644
--- a/doc/source/library/apt_pkg.rst
+++ b/doc/source/library/apt_pkg.rst
@@ -1352,10 +1352,10 @@ Records (Release files, Packages, Sources)
Example (shortened)::
- cand = depcache.GetCandidateVer(cache['python-apt'])
- records.Lookup(cand.FileList[0])
+ cand = depcache.get_candidate_ver(cache['python-apt'])
+ records.lookup(cand.file_list[0])
# Now you can access the record
- print records.SourcePkg # == python-apt
+ print records.source_pkg # == python-apt
.. attribute:: filename