From: Bob Halley Date: Tue, 16 Jun 2020 15:10:16 +0000 (-0700) Subject: lint X-Git-Tag: v2.0.0rc1~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18e5a9ba0975c06787240ed77013bc6974279e3e;p=thirdparty%2Fdnspython.git lint --- diff --git a/dns/_asyncbackend.py b/dns/_asyncbackend.py index 705ce180..d96dce11 100644 --- a/dns/_asyncbackend.py +++ b/dns/_asyncbackend.py @@ -1,10 +1,5 @@ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license -import socket - -import dns.inet - - # This is a nullcontext for both sync and async. 3.7 has a nullcontext, # but it is only for sync use. diff --git a/dns/inet.py b/dns/inet.py index d434948f..048a80c2 100644 --- a/dns/inet.py +++ b/dns/inet.py @@ -163,7 +163,7 @@ def low_level_address_tuple(high_tuple, af=None): return (address, port, 0, 0) # try to avoid getaddrinfo() addrpart = address[:i] - scope = address[i+1:] + scope = address[i + 1:] if scope.isdigit(): return (addrpart, port, 0, int(scope)) try: diff --git a/dns/query.py b/dns/query.py index f224fe3d..0d76195a 100644 --- a/dns/query.py +++ b/dns/query.py @@ -25,7 +25,6 @@ import socket import struct import time import base64 -import ipaddress import urllib.parse import dns.exception