summaryrefslogtreecommitdiff
path: root/doc/examples/tagfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/tagfile.py')
-rwxr-xr-xdoc/examples/tagfile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/tagfile.py b/doc/examples/tagfile.py
index 770e40de..d8984cad 100755
--- a/doc/examples/tagfile.py
+++ b/doc/examples/tagfile.py
@@ -3,6 +3,6 @@ import apt_pkg
Parse = apt_pkg.TagFile(open("/var/lib/dpkg/status", "r"))
-while Parse.Step() == 1:
- print Parse.Section.get("Package")
- print apt_pkg.ParseDepends(Parse.Section.get("Depends", ""))
+while Parse.step() == 1:
+ print Parse.section.get("Package")
+ print apt_pkg.parse_depends(Parse.section.get("Depends", ""))