From: Bob Halley Date: Tue, 16 Jun 2020 22:54:52 +0000 (-0700) Subject: lint X-Git-Tag: v2.0.0rc1~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b750af4536b00016de421f124742565dbad7abd;p=thirdparty%2Fdnspython.git lint --- diff --git a/dns/message.py b/dns/message.py index bdcbdc4f..ecec7a7d 100644 --- a/dns/message.py +++ b/dns/message.py @@ -399,7 +399,8 @@ class Message: rrset = None return rrset - def to_wire(self, origin=None, max_size=0, multi=False, tsig_ctx=None, **kw): + def to_wire(self, origin=None, max_size=0, multi=False, tsig_ctx=None, + **kw): """Return a string containing the message in DNS compressed wire format. diff --git a/dns/query.py b/dns/query.py index 2763f894..c084d79a 100644 --- a/dns/query.py +++ b/dns/query.py @@ -352,7 +352,7 @@ def https(q, where, timeout=None, port=443, source=None, source_port=0, wire = base64.urlsafe_b64encode(wire).rstrip(b"=") response = session.get(url, headers=headers, timeout=timeout, verify=verify, - params={"dns" : wire}) + params={"dns": wire}) # see https://tools.ietf.org/html/rfc8484#section-4.2.1 for info about DoH # status codes