From 178a68f5cdb9939113a5088cc8d2a201f1f22fb7 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 17 Jun 2015 17:54:23 +0200 Subject: doc/source/library/apt_pkg.rst: Fix an example from old API to new API Someone reported this to mvo. --- doc/source/library/apt_pkg.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/source/library') 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 -- cgit v1.2.3