mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 16:19:21 +00:00
c75fa2107b
--HG-- branch : astng2
23 lines
441 B
Python
23 lines
441 B
Python
"""test unused variable
|
|
"""
|
|
|
|
__revision__ = 0
|
|
|
|
def function(matches):
|
|
""""yo"""
|
|
aaaa = 1
|
|
index = -1
|
|
for match in matches:
|
|
index += 1
|
|
print match
|
|
|
|
def visit_if(self, node):
|
|
"""increments the branchs counter"""
|
|
branchs = 1
|
|
# don't double count If nodes coming from some 'elif'
|
|
if node.orelse and len(node.orelse) > 1:
|
|
branchs += 1
|
|
self.inc_branch(branchs)
|
|
self.stmts += branchs
|
|
|