~ubuntu-branches/debian/experimental/python-apt/experimental

« back to all changes in this revision

Viewing changes to doc/examples/tagfile.py

  • Committer: Package Import Robot
  • Author(s): Julian Andres Klode
  • Date: 2015-08-18 15:25:13 UTC
  • mfrom: (6.2.54 sid)
  • Revision ID: package-import@ubuntu.com-20150818152513-rwfhk0buhcspcur3
Tags: 1.1.0~alpha2
Fix a typo in a member access.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
Parse = apt_pkg.TagFile(open("/var/lib/dpkg/status", "r"))
5
5
 
6
 
while Parse.Step() == 1:
7
 
    print Parse.Section.get("Package")
8
 
    print apt_pkg.ParseDepends(Parse.Section.get("Depends", ""))
 
6
while Parse.step() == 1:
 
7
    print Parse.section.get("Package")
 
8
    print apt_pkg.parse_depends(Parse.section.get("Depends", ""))