]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
lint
authorBob Halley <halley@dnspython.org>
Tue, 16 Jun 2020 15:10:16 +0000 (08:10 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 16 Jun 2020 15:10:16 +0000 (08:10 -0700)
dns/_asyncbackend.py
dns/inet.py
dns/query.py

index 705ce180c2790c9e565a7a759c8b13d421bb1fcd..d96dce11d04adddcd3f2d1ae5164599b11856ed0 100644 (file)
@@ -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.
 
index d434948fbb74961f4a6b6b106bbb64685099b1d4..048a80c23c355156ef1e59fa5e54a265a4286b32 100644 (file)
@@ -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:
index f224fe3db92f4ccc0f5f64e7916a78bc04d62cd8..0d76195ac58f8623889911644f9680c360dbaaeb 100644 (file)
@@ -25,7 +25,6 @@ import socket
 import struct
 import time
 import base64
-import ipaddress
 import urllib.parse
 
 import dns.exception