/usr/lib/python2.6/site-packages/debtcollector
Edit: /usr/lib/python2.6/site-packages/debtcollector/removals.pyc (5240B)
Ņō
}DVc @ s d d k Z d d k Z d d k Z d d k Z d d k l Z d Z d d d d d d d Z d d d d d d Z d d d d d d d Z
d S( iĸĸĸĸN( t _utilsc C s t i | d S( Ni ( R t get_qualified_name( t mod( ( s= /tmp/pip-build-lt8jXN/debtcollector/debtcollector/removals.pyt _get_module_name s i c sg | d j o, t i t d d d d d St i f d } | | S( sĄ Decorates a function, method, or class to emit a deprecation warning
:param str message: A message to include in the deprecation warning
:param str version: Specify what version the removed function is present in
:param str removal_version: What version the function will be removed. If
'?' is used this implies an undefined future
version
:param int stacklevel: How many entries deep in the call stack before
ignoring
:param type category: warnings message category (this defaults to
``DeprecationWarning`` when none is provided)
t messaget versiont removal_versiont
stacklevelt categoryc
sÐ t i | \ } } | o0 t i | o d } d } qL d } d } n | p
d } d } | d j oŊ t i | o` d } d } t t i | } | d j o t i | d t } qt i | d t } q6d } t t i | } | d j o t i
| } q6n d } t i | d t } | o d i | | g }
qf| }
n | }
| o |
| 7}
n | d |
} t i | d d
d } t i
| d d
| | | S( Ns Using classt s Using function/methods ()t __main__t fully_qualifiedt .s '%s' is deprecatedR R R R R ( R R t inspectt isclasst NoneR t getmodulet get_class_namet Falset Truet get_callable_namet joint generate_messaget deprecation(
t ft instancet argst kwargst qualifiedt f_namet
prefix_pret
thing_postt base_namet module_namet
thing_namet prefixt out_message( R R R R R ( s= /tmp/pip-build-lt8jXN/debtcollector/debtcollector/removals.pyt wrapper1 sT
N( R t functoolst partialt removet wraptt decorator( R R R R R R R% ( ( R R R R R s= /tmp/pip-build-lt8jXN/debtcollector/debtcollector/removals.pyR( s
$5c
sV d } t i | d d d | d | d | t i f d } | S( sB Decorates a kwarg accepting function to deprecate a removed kwarg.s% Using the '%s' argument is deprecatedt postfixR R R c s7 | j o t i d d n | | | S( NR R ( R R ( R R R R ( R R R$ t old_name( s= /tmp/pip-build-lt8jXN/debtcollector/debtcollector/removals.pyR% s s
N( R R R R) R* ( R, R R R R R R# R% ( ( R R R, R$ s= /tmp/pip-build-lt8jXN/debtcollector/debtcollector/removals.pyt
removed_kwargi s
!c
C sŅ t i | o t | } nI t | t i o
| } n, t i t | \ } } t d | d | }
| o d | } n d
} t i |
d | d | d | d | } t i | d | d | d
S( s6 Helper to be called inside a module to emit a deprecation warning
:param str replacment: A location (or information about) of any potential
replacement for the removed module (if applicable)
:param str message: A message to include in the deprecation warning
:param str version: Specify what version the removed module is present in
:param str removal_version: What version the module will be removed. If
'?' is used this implies an undefined future
version
:param int stacklevel: How many entries deep in the call stack before
ignoring
:param type category: warnings message category (this defaults to
``DeprecationWarning`` when none is provided)
sA Unexpected module type '%s' (expected string or module type only)s# The '%s' module usage is deprecateds , please use %s insteadR+ R R R R R N(
R
t ismoduleR t
isinstancet sixt string_typesR R t typet TypeErrorR R R (
t modulet replacementR R R R R R! t _qualt type_nameR# R+ R$ ( ( s= /tmp/pip-build-lt8jXN/debtcollector/debtcollector/removals.pyt removed_module} s"
( R&