summaryrefslogtreecommitdiff
path: root/doc/examples/desc.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/desc.py')
-rw-r--r--doc/examples/desc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/desc.py b/doc/examples/desc.py
index 1d43f2f9..f47517cf 100644
--- a/doc/examples/desc.py
+++ b/doc/examples/desc.py
@@ -3,7 +3,7 @@ import apt_pkg
apt_pkg.init()
-apt_pkg.Config.Set("APT::Acquire::Translation","de")
+apt_pkg.Config.Set("APT::Acquire::Translation", "de")
cache = apt_pkg.GetCache()
depcache = apt_pkg.GetDepCache(cache)
@@ -15,10 +15,10 @@ print cand
desc = cand.TranslatedDescription
print desc
print desc.FileList
-(f,index) = desc.FileList.pop(0)
+(f, index) = desc.FileList.pop(0)
records = apt_pkg.GetPkgRecords(cache)
-records.Lookup((f,index))
+records.Lookup((f, index))
desc = records.LongDesc
print len(desc)
print desc