summaryrefslogtreecommitdiff
path: root/doc/examples/sources.py
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-07-05 22:06:22 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-07-05 22:06:22 +0300
commit622812485150fa7864910ee2f710d5aab2fa9e6d (patch)
treeb3bc4fd72bb80e74ba5a60d8b3d47e610dff012e /doc/examples/sources.py
parent798846ab8337471998b0a4d796d6d409453faa7d (diff)
parentfdd173dd444098ed533cbcd541a7f10f228bc47e (diff)
downloadpython-apt-622812485150fa7864910ee2f710d5aab2fa9e6d.tar.gz
Merge git://anonscm.debian.org/apt/python-apt
Conflicts: debian/changelog python/apt_pkgmodule.cc
Diffstat (limited to 'doc/examples/sources.py')
-rw-r--r--doc/examples/sources.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/examples/sources.py b/doc/examples/sources.py
index bc08ad69..aa783758 100644
--- a/doc/examples/sources.py
+++ b/doc/examples/sources.py
@@ -8,9 +8,9 @@ apt_pkg.init()
#sources = apt_pkg.SourceRecords(cache)
sources = apt_pkg.SourceRecords()
-sources.Restart()
-while sources.Lookup('hello'):
- print sources.Package, sources.Version, sources.Maintainer, \
- sources.Section, `sources.Binaries`
- print sources.Files
- print sources.Index.ArchiveURI(sources.Files[0][2])
+sources.restart()
+while sources.lookup('hello'):
+ print sources.package, sources.version, sources.maintainer, \
+ sources.section, repr(sources.binaries)
+ print sources.files
+ print sources.index.archive_uri(sources.files[0][2])