summaryrefslogtreecommitdiff
path: root/dns/name.py
diff options
context:
space:
mode:
authorBob Halley <halley@play-bow.org>2016-09-18 16:08:23 -0700
committerGitHub <noreply@github.com>2016-09-18 16:08:23 -0700
commit87378018548a54d4da238f019a17184c1ca479a8 (patch)
tree64dd3a92a481da13ea95aac299a61c5aff1735b9 /dns/name.py
parent4f4829a3727b9c5c59263d4c0c75503d66fd8002 (diff)
parentab91796060192ef4694b09cca2f10108bd6ba949 (diff)
downloaddnspython-87378018548a54d4da238f019a17184c1ca479a8.tar.gz
Merge pull request #197 from bastiak/pylint
Pylint
Diffstat (limited to 'dns/name.py')
-rw-r--r--dns/name.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/name.py b/dns/name.py
index 5288e1e..98ad321 100644
--- a/dns/name.py
+++ b/dns/name.py
@@ -34,7 +34,7 @@ from ._compat import long, binary_type, text_type, unichr
try:
maxint = sys.maxint
-except:
+except AttributeError:
maxint = (1 << (8 * struct.calcsize("P"))) // 2 - 1
NAMERELN_NONE = 0