summaryrefslogtreecommitdiff
path: root/test/input/func_newstyle_property.py
blob: cdce8facfd67c31ae073ffcf6889625c06debc4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# pylint: disable-msg=R0903
"""test property on old style class"""

__revision__ = 1

def getter(self):
    """interesting"""
    return self

class OkOk(object):
    """correct usage"""
    method = property(getter, doc='hop')
    
class HaNonNonNon:
    """bad usage"""
    method = property(getter, doc='hop')
    
    def __init__(self):
        pass