third_party.pylibs.pylint.src/pylint/test/input/func_no_dummy_redefined.py

15 lines
299 B
Python
Raw Normal View History

"""Make sure warnings about redefinitions do not trigger for dummy variables."""
from __future__ import print_function
_, INTERESTING = 'a=b'.split('=')
value = 10
def clobbering():
"""Clobbers a dummy name from the outer scope."""
value = 9
for _ in range(7):
print(value)