From ac29ad75dbe54301cee4a9d34a529174d62f28ac Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Sun, 26 Jun 2016 23:55:36 +0200 Subject: [PATCH] Pylint: enable range-builtin-not-iterating check --- dns/rdtypes/euibase.py | 3 ++- pylintrc | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/rdtypes/euibase.py b/dns/rdtypes/euibase.py index 131091637..c7d00455a 100644 --- a/dns/rdtypes/euibase.py +++ b/dns/rdtypes/euibase.py @@ -17,6 +17,7 @@ import binascii import dns.rdata +from dns._compat import xrange class EUIBase(dns.rdata.Rdata): @@ -49,7 +50,7 @@ def from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True): if len(text) != cls.text_len: raise dns.exception.SyntaxError( 'Input text must have %s characters' % cls.text_len) - expected_dash_idxs = range(2, cls.byte_len * 3 - 1, 3) + expected_dash_idxs = xrange(2, cls.byte_len * 3 - 1, 3) for i in expected_dash_idxs: if text[i] != '-': raise dns.exception.SyntaxError('Dash expected at position %s' diff --git a/pylintrc b/pylintrc index 578b3fdd6..ef48d5aae 100644 --- a/pylintrc +++ b/pylintrc @@ -35,7 +35,6 @@ disable= no-member, old-division, protected-access, - range-builtin-not-iterating, redefined-builtin, round-builtin, superfluous-parens,