summaryrefslogtreecommitdiff
path: root/doc/examples/sources.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/sources.py')
-rw-r--r--doc/examples/sources.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/sources.py b/doc/examples/sources.py
index 49652982..bc08ad69 100644
--- a/doc/examples/sources.py
+++ b/doc/examples/sources.py
@@ -4,10 +4,10 @@ import apt_pkg
apt_pkg.init()
-#cache = apt_pkg.GetCache()
-#sources = apt_pkg.GetPkgSrcRecords(cache)
+#cache = apt_pkg.Cache()
+#sources = apt_pkg.SourceRecords(cache)
-sources = apt_pkg.GetPkgSrcRecords()
+sources = apt_pkg.SourceRecords()
sources.Restart()
while sources.Lookup('hello'):
print sources.Package, sources.Version, sources.Maintainer, \