mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-08 10:57:43 +02:00
- Fix swig and python examples for Python 3.x.
git-svn-id: file:///svn/unbound/trunk@3227 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -48,12 +48,12 @@ if os.path.isfile("keys"):
|
||||
status, result = ctx.resolve("www.nic.cz", RR_TYPE_A, RR_CLASS_IN)
|
||||
if status == 0 and result.havedata:
|
||||
|
||||
print "Result:", result.data.address_list
|
||||
print("Result:", result.data.address_list)
|
||||
|
||||
if result.secure:
|
||||
print "Result is secure"
|
||||
print("Result is secure")
|
||||
elif result.bogus:
|
||||
print "Result is bogus"
|
||||
print("Result is bogus")
|
||||
else:
|
||||
print "Result is insecure"
|
||||
print("Result is insecure")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user