diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-06 17:59:59 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-06 17:59:59 +0100 |
commit | 8a2a91fbe529c0bcf083aa85d92a8967199b5e26 (patch) | |
tree | bfa1620648162662332026bb709ca601ae5d4919 /checkers/design_analysis.py | |
parent | b4badcc877739b94e4b665cb6d84d3dae642004d (diff) | |
download | pylint-8a2a91fbe529c0bcf083aa85d92a8967199b5e26.tar.gz |
some more astng2 support / attr modifications
Diffstat (limited to 'checkers/design_analysis.py')
-rw-r--r-- | checkers/design_analysis.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/checkers/design_analysis.py b/checkers/design_analysis.py index 3846432..8eed2f8 100644 --- a/checkers/design_analysis.py +++ b/checkers/design_analysis.py @@ -302,7 +302,8 @@ class MisdesignChecker(BaseChecker): def visit_if(self, node): """increments the branchs counter""" - branchs = len(node.tests) + #FIXME:len(node.test) doesn't work with astng2 / elif becomes else:if + branchs = 1 # len(node.test) # if node.orelse: branchs += 1 self._inc_branch(branchs) |