diff options
| author | Brian Wellington <bwelling@xbill.org> | 2020-01-07 13:03:13 -0800 |
|---|---|---|
| committer | Brian Wellington <bwelling@xbill.org> | 2020-01-07 13:03:13 -0800 |
| commit | 7ec39e21ab0a6761a34ec405a4a59dc4ebe54924 (patch) | |
| tree | 61a5e0db5d3e733e95c87d35ed2c04a73e99f3ba /examples/doh.py | |
| parent | 0ed99480529ecf3217738fe671a31dddd3360e48 (diff) | |
| download | dnspython-7ec39e21ab0a6761a34ec405a4a59dc4ebe54924.tar.gz | |
DoH cleanup.
Diffstat (limited to 'examples/doh.py')
| -rw-r--r-- | examples/doh.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/doh.py b/examples/doh.py index 01c562f..eff9ae7 100644 --- a/examples/doh.py +++ b/examples/doh.py @@ -18,7 +18,7 @@ def main(): # one method is to use context manager, session will automatically close with requests.sessions.Session() as session: q = dns.message.make_query(qname, dns.rdatatype.A) - r = dns.query.https(q, where, session) + r = dns.query.https(q, where, session=session) for answer in r.answer: print(answer) @@ -29,7 +29,7 @@ def main(): # second method, close session manually session = requests.sessions.Session() q = dns.message.make_query(qname, dns.rdatatype.A) - r = dns.query.https(q, where, session) + r = dns.query.https(q, where, session=session) for answer in r.answer: print(answer) |
