From 18e5a9ba0975c06787240ed77013bc6974279e3e Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 16 Jun 2020 08:10:16 -0700 Subject: [PATCH] lint --- dns/_asyncbackend.py | 5 ----- dns/inet.py | 2 +- dns/query.py | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) 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 -- 2.47.3