Current Path : /usr/lib/python2.7/dist-packages/apt/ |
Current File : //usr/lib/python2.7/dist-packages/apt/deprecation.pyc |
ó WâRc @ sk d Z d d l Z d d l Z d d l Z d d l Z g Z d e f d „ ƒ YZ e d „ Z d „ Z d S( s¯ Classes and functions for deprecating features. This is used for internal purposes only and not part of the official API. Do not use it for anything outside the apt package. iÿÿÿÿNt AttributeDeprecatedByc B s, e Z d Z d „ Z d d „ Z d „ Z RS( s Property acting as a proxy for a new attribute. When accessed, the property issues a DeprecationWarning and (on get) calls attrgetter() for the attribute 'attribute' on the current object or (on set) uses setattr to set the value of the wrapped attribute. c C s, | | _ d | | _ t j | ƒ | _ d S( s Initialize the property.s# Deprecated, please use '%s' insteadN( t attributet __doc__t operatort attrgettert getter( t selfR ( ( s3 /usr/lib/python2.7/dist-packages/apt/deprecation.pyt __init__* s c C sK | d k r t | | j | ƒ St j | j t d d ƒ| j | pG | ƒ S( s; Issue a DeprecationWarning and return the requested value.t stackleveli N( t Nonet getattrR t warningst warnR t DeprecationWarningR ( R t objt type_( ( s3 /usr/lib/python2.7/dist-packages/apt/deprecation.pyt __get__0 s c C s0 t j | j t d d ƒt | | j | ƒ d S( s8 Issue a DeprecationWarning and set the requested value.R i N( R R R R t setattrR ( R R t value( ( s3 /usr/lib/python2.7/dist-packages/apt/deprecation.pyt __set__7 s N( t __name__t __module__R R R R R ( ( ( s3 /usr/lib/python2.7/dist-packages/apt/deprecation.pyR "