Commit b311113b authored by Štěpán Balážik's avatar Štěpán Balážik

pylint: fix redefined-variable-type

parent 03213062
Pipeline #5999 failed with stage
in 1 minute and 8 seconds
......@@ -91,9 +91,11 @@ def recvfrom_msg(stream, raw=False):
addr = stream.getpeername()[0]
raise NotImplementedError("[recvfrom_msg]: unknown socket type '%i'" % stream.type)
if not raw:
data = dns.message.from_wire(data, one_rr_per_rrset=True)
return data, addr
if raw:
return data, addr
msg = dns.message.from_wire(data, one_rr_per_rrset=True)
return msg, addr
def sendto_msg(stream, message, addr=None):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment