Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / test / extensions / data / elif.py @ 745

History | View | Annotate | Download (601 Bytes)

1
"""Checks use of "else if" triggers a refactor message"""
2

    
3
def my_function():
4
    """docstring"""
5
    myint = 2
6
    if myint > 5:
7
        pass
8
    else:
9
        if myint <= 5:
10
            pass
11
        else:
12
            myint = 3
13
            if myint > 2:
14
                if myint > 3:
15
                    pass
16
                elif myint == 3:
17
                    pass
18
                elif myint < 3:
19
                    pass
20
                else:
21
                    if myint:
22
                        pass
23
            else:
24
                if myint:
25
                    pass
26
                myint = 4