summaryrefslogtreecommitdiff
path: root/pylint/test/input/func_return_yield_mix_py_33.py
blob: 1a3cd5d63877b943e9226f42c039a10ab3473d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""pylint should detect yield and return mix inside genrators"""
__revision__ = None
def somegen():
    """this is a bad generator"""
    if True:
        return 1
    else:
        yield 2

def moregen():
    """this is another bad generator"""
    if True:
        yield 1
    else:
        return 2