diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-14 03:10:31 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-14 03:10:31 +0200 |
commit | d65e7cd75d368a075ff271c8320e94ebf2f2d9b1 (patch) | |
tree | 0c5dd609a5c90f447323e65ca571a6eb74fd68dd /astroid/rebuilder.py | |
parent | d4d1842ed2c3b51de80869ad0b423f11b1937987 (diff) | |
download | astroid-git-d65e7cd75d368a075ff271c8320e94ebf2f2d9b1.tar.gz |
Cleanup pylint's warnings over astroid codebase
Some of the messages were disabled in pylintrc, since they're not
very useful for our case. Other parameters, such as the number of
arguments / statements / attributes etc were configured so that they
won't be too restrictive for our codebase, since making the code
to respect them right now requires too much development changes,
which is not justified by the end result.
Closes issue #284.
Diffstat (limited to 'astroid/rebuilder.py')
-rw-r--r-- | astroid/rebuilder.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py index a07fe295..903b3cc3 100644 --- a/astroid/rebuilder.py +++ b/astroid/rebuilder.py @@ -259,9 +259,9 @@ class TreeRebuilder(object): # problem for the correctness of the program). # # ("a" + "b" + # one thousand more + "c") - newnode = self._peepholer.optimize_binop(node, parent) - if newnode: - return newnode + optimized = self._peepholer.optimize_binop(node, parent) + if optimized: + return optimized newnode = nodes.BinOp(_BIN_OP_CLASSES[type(node.op)], node.lineno, node.col_offset, parent) |