Skip to content

Commit

Permalink
Pylint: enable range-builtin-not-iterating check
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBasti committed Jun 26, 2016
1 parent 366e15b commit ac29ad7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dns/rdtypes/euibase.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import binascii

import dns.rdata
from dns._compat import xrange


class EUIBase(dns.rdata.Rdata):
Expand Down Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ disable=
no-member,
old-division,
protected-access,
range-builtin-not-iterating,
redefined-builtin,
round-builtin,
superfluous-parens,
Expand Down

0 comments on commit ac29ad7

Please sign in to comment.