]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
delint
authorBob Halley <halley@dnspython.org>
Thu, 2 Apr 2020 15:42:24 +0000 (08:42 -0700)
committerBob Halley <halley@dnspython.org>
Thu, 2 Apr 2020 15:42:24 +0000 (08:42 -0700)
dns/dnssec.py
dns/rdata.py

index 137b9aa68ac38a5f01e9a3268722d92813b1ec8c..5fbb5da3e8e2100e52ee5b33240f644299e2d182 100644 (file)
@@ -404,6 +404,7 @@ def _validate_rrsig(rrset, rrsig, keys, origin=None, now=None):
         elif _is_eddsa(rrsig.algorithm):
             keyptr = candidate_key.key
             if not (_have_ecpy and sys.version_info >= (3, 6)):
+                #pylint: disable=line-too-long
                 raise ImportError('DNSSEC validation for algorithm %u requires ecpy library and Python 3.6 or newer' % rrsig.algorithm)
             if rrsig.algorithm == ED25519:
                 curve = 'Ed25519'
@@ -590,7 +591,7 @@ else:
     _have_pycrypto = True
 
     try:
-        from ecpy.curves import Curve, Point
+        from ecpy.curves import Curve
         from ecpy.keys import ECPublicKey
         from ecpy.eddsa import EDDSA
     except ImportError:
index 14f41393e6cd0ac1302d33aa399b4a3efc0ebac6..f207168cfe72f2a064f7de57b772b52f5d10cf22 100644 (file)
@@ -100,7 +100,7 @@ def _constify(o):
         try:
             hash(o)
             return o
-        except:
+        except Exception:
             return tuple(_constify(elt) for elt in o)
     if type(o) == list:
         return tuple(_constify(elt) for elt in o)