diff options
| author | Ben Finney <ben+debian@benfinney.id.au> | 2008-08-08 10:27:33 +1000 |
|---|---|---|
| committer | Ben Finney <ben+debian@benfinney.id.au> | 2008-08-08 10:27:33 +1000 |
| commit | 75676866d4bf394b3ba1ddef06e0c93f6da03242 (patch) | |
| tree | 7c28bf07c3500001e632d3859ef3b3853bc5fe4f /doc/examples/configisc.py | |
| parent | 7b14352c54b7acbf2a68240fa960e188c6e8742a (diff) | |
| download | python-apt-75676866d4bf394b3ba1ddef06e0c93f6da03242.tar.gz | |
'mapping.has_key' is deprecated, use current Python 'key in mapping' idiom.
Diffstat (limited to 'doc/examples/configisc.py')
| -rwxr-xr-x | doc/examples/configisc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/configisc.py b/doc/examples/configisc.py index 1d5965f5..dc3c2f33 100755 --- a/doc/examples/configisc.py +++ b/doc/examples/configisc.py @@ -27,7 +27,7 @@ apt_pkg.ReadConfigFileISC(Cnf, ConfigFile[0]) # print "%s \"%s\";" % (I, Cnf[I]) # bind8 config file.. -if Cnf.has_key("Zone"): +if "Zone" in Cnf: print "Zones: ", Cnf.SubTree("zone").List() for I in Cnf.List("zone"): SubCnf = Cnf.SubTree(I) |
