Skip to content

Commit

Permalink
Link to Pylint issues where they are worked around
Browse files Browse the repository at this point in the history
  • Loading branch information
koterpillar committed Dec 4, 2015
1 parent e691fc1 commit 5630af5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion aloe/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,12 +700,15 @@ def parse(cls, string=None, filename=None, language=None):
"""

parser = Parser()
# pylint:disable=redefined-variable-type
# https://bitbucket.org/logilab/pylint/issues/710
if language:
if language == 'pt-br':
language = 'pt'
token_matcher = LanguageTokenMatcher(language)
else:
token_matcher = TokenMatcher() # pylint:disable=redefined-variable-type
token_matcher = TokenMatcher()
# pylint:enable=redefined-variable-type

if string:
token_scanner = TokenScanner(string=string)
Expand Down
5 changes: 4 additions & 1 deletion tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ def __init__(self, value):
"""

self.value = value
type(self).counter += 1 # pylint:disable=no-member
# pylint:disable=no-member
# https://bitbucket.org/logilab/pylint/issues/707
type(self).counter += 1
# pylint:enable=no-member

first = Memoized(5)
second = Memoized(10)
Expand Down

0 comments on commit 5630af5

Please sign in to comment.