ó
'![c           @   s[   d  Z  d „  Z d e f d „  ƒ  YZ d d
 d „  ƒ  YZ d „  Z d e f d „  ƒ  YZ d	 S(   sF   Test properties on old style classes and property.setter/deleter usagec         C   s   |  S(   t   interesting(    (   t   self(    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyt   getter   s    t   CorrectClassc           B   s    e  Z d  Z e e d d ƒZ RS(   s   correct usaget   doct   hop(   t   __name__t
   __module__t   __doc__t   propertyR   t   method(    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyR   	   s   t   OldStyleClassc           B   s)   e  Z d  Z e e d d ƒZ d „  Z RS(   s	   bad usageR   R   c         C   s   d  S(   N(    (   R   (    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyt   __init__   s    (   R   R   R   R	   R   R
   R   (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyR      s   c            s   ‡  f d †  } | S(   s   Redefining decorator.c            s
   ˆ  |  ƒ S(   s   Wrapper function.(    (   R   (   t   func(    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyt   wrapped   s    (    (   R   R   (    (   R   sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyt	   decorator   s    t	   SomeClassc           B   sY   e  Z d  Z d „  Z e d „  ƒ Z e j d „  ƒ Z e j d „  ƒ Z e d „  ƒ Z	 RS(   s   another docstringc         C   s   d  |  _ d  S(   N(   t   Nonet   _prop(   R   (    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyR       s    c         C   s   |  j  S(   s   I'm the 'prop' property.(   R   (   R   (    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyt   prop#   s    c         C   s   | |  _  d S(   s   I'm the 'prop' property.N(   R   (   R   t   value(    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyR   (   s    c         C   s
   |  `  d S(   s   I'm the 'prop' property.N(   R   (   R   (    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyR   -   s    c         C   s   |  j  S(   s&   Just a normal method with a decorator.(   R   (   R   (    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyt   noregr2   s    (
   R   R   R   R   R	   R   t   settert   deleterR   R   (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyR      s   	N(    (   R   R   t   objectR   R   R   R   (    (    (    sI   lib/python2.7/site-packages/pylint/test/functional/newstyle_properties.pyt   <module>   s
   		