Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
ãEYc@sØddlZddlZddlZddlZddlmZd„Zdd„Zde	fd„ƒYZ
ddddddd„Zdddddd	„Zddddddd
„Z
ddddddd„ZdS(iÿÿÿÿN(t_utilscCstj|ƒdS(Ni(Rtget_qualified_name(tobj((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt_get_qualified_namescCs=x6td|||fƒD]}||ƒ}|r|SqW|S(s=Fetch first non-none/empty result of applying ``apply_func``.N(tfiltertNone(tfgettfsettfdelt
apply_functvalue_not_foundtftresult((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt_fetch_first_results
tremoved_propertyc
Bs•eZdZidd6dd6dd6Zdddddedddd„	Zd	„Zd
„Zd„Z	d„Z
d
„Zd„Zd„Z
d„ZRS(s>Property descriptor that deprecates a property.

    This works like the ``@property`` descriptor but can be used instead to
    provide the same functionality and also interact with the :mod:`warnings`
    module to warn when a property is accessed, set and/or deleted.

    :param message: string used as ending contents of the deprecate message
    :param version: version string (represents the version this deprecation
                    was created in)
    :param removal_version: version string (represents the version this
                            deprecation will be removed in); a string
                            of '?' will denote this will be removed in
                            some future unknown version
    :param stacklevel: stacklevel used in the :func:`warnings.warn` function
                       to locate where the users code is when reporting the
                       deprecation call (the default being 3)
    :param category: the :mod:`warnings` category to use, defaults to
                     :py:class:`DeprecationWarning` if not provided
    s'Setting the '%s' property is deprecatedtsets'Reading the '%s' property is deprecatedtgets(Deleting the '%s' property is deprecatedtdeleteic

CsŽ||_||_||_||_||_||_||_|	|_|dkrxt	j
|ƒrxt|ddƒ}ni|_||_
dS(Nt__doc__(RRRt
stackleveltcategorytversiontremoval_versiontmessageRtinspectt
isfunctiontgetattrt_message_cacheR(
tselfRRRtdocRRRRR((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt__init__As									cCs•y|j|}Wn}tk
r|j|}|t|j|j|jtddƒ}tj	|d|j
d|jd|jƒ}||j|<nX|S(NR
s???RRR(
RtKeyErrort_PROPERTY_GONE_TPLSR
RRRRRtgenerate_messageRRR(Rtkindtout_messaget
prefix_tpltprefix((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt_fetch_message_from_cacheQs


cKs¶||_|jd|jƒ|_|jd|jƒ|_|jd|jƒ|_|jd|jƒ|_|jd|jƒ|_|jdt|d|jƒƒ|_|j	j
ƒ|S(NRRRRRRR(RRRRRRRRRRtclear(RRtkwargs((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt__call___s			
cCs]|jdkrtdƒ‚n|jdƒ}tj|d|jd|jƒ|j|ƒdS(Nscan't delete attributeRRR(RRtAttributeErrorR&RtdeprecationRR(RRR#((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt
__delete__ms
cCs`|jdkrtdƒ‚n|jdƒ}tj|d|jd|jƒ|j||ƒdS(Nscan't set attributeRRR(RRR*R&RR+RR(RRtvalueR#((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt__set__us
cCsi|dkr|S|jdkr.tdƒ‚n|jdƒ}tj|d|jd|jƒ|j|ƒS(Nsunreadable attributeRRR(RRR*R&RR+RR(RRR-R#((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt__get__}s
cCsdt|ƒ||j|j|jƒ}|j|_|j|_|j|_|j|_|j|_|S(N(	ttypeRRRRRRRR(RRto((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pytgetter‡s$cCsdt|ƒ|j||j|jƒ}|j|_|j|_|j|_|j|_|j|_|S(N(	R0RRRRRRRR(RRR1((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pytsetters$cCsdt|ƒ|j|j||jƒ}|j|_|j|_|j|_|j|_|j|_|S(N(	R0RRRRRRRR(RRR1((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pytdeleter™s$N(t__name__t
__module__RR RtDeprecationWarningRR&R)R,R.R/R2R3R4(((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyR%s 
					
				icse|dkr7tjtdˆdˆdˆdˆdˆƒStj‡‡‡‡‡fd†ƒ}||ƒS(sDecorates a function, method, or class to emit a deprecation warning

    Due to limitations of the wrapt library (and python) itself, if this
    is applied to subclasses of metaclasses then it likely will not work
    as expected. More information can be found at bug #1520397 to see if
    this situation affects your usage of this *universal* decorator, for
    this specific scenario please use :py:func:`.removed_class` instead.

    :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)
    RRRRRc
s¾tj|ƒ\}}|rHtj|ƒr9d}d}qHd}d}n|sPd}d}|dkrtj|ƒrÒd}d}ttj|ƒƒ}	|	dkrºtj|dtƒ}qtj|dt	ƒ}q)d}ttj|ƒƒ}	|	dkr)tj
|ƒ}q)nd}tj|dtƒ}|rGdj||gƒ}
qV|}
n|}
|ri|
|7}
n|d|
}tj|d	ˆd
ˆdˆƒ}tj
|dˆd
ˆƒ|||ŽS(NsUsing classtsUsing function/methods()t__main__tfully_qualifiedt.s '%s' is deprecatedRRRRR(RRRtisclassRRt	getmoduletget_class_nametFalsetTruetget_callable_nametjoinR!R+(
RtinstancetargsR(t	qualifiedtf_namet
prefix_pret
thing_postt	base_nametmodule_namet
thing_nameR%R#(RRRRR(sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pytwrapper¾sT				
	
N(Rt	functoolstpartialtremovetwraptt	decorator(RRRRRRRL((RRRRRsK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyRO£s$5c
sVdˆ}tj|ddd|d|d|ƒ‰tj‡‡‡‡fd†ƒ}|S(sBDecorates a kwarg accepting function to deprecate a removed kwarg.s%Using the '%s' argument is deprecatedtpostfixRRRcs5ˆ|kr(tjˆdˆdˆƒn|||ŽS(NRR(RR+(RRCRDR((Rtold_nameR#R(sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyRLsN(RR!RRPRQ(RSRRRRRR%RL((RRSR#RsK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt
removed_kwargös
	!cs=‡‡fd†‰d„‰‡‡‡‡‡‡fd†}|S(sBDecorates a class to denote that it will be removed at some point.cs:tjˆdtjˆƒƒ‡‡‡‡fd†ƒ}|S(Ntassignedcs)tjˆdˆdˆƒˆ|||ŽS(NRR(RR+(RRDR((Rtold_initR#R(sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pytnew_inits(tsixtwrapsRtget_assigned(RVR#RW(RR(RVR#sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt_wrap_its6cSsAtj|ƒs=tjt|ƒƒ\}}td|ƒ‚ndS(Ns5Unexpected class type '%s' (expected class type only)(RR<RRR0t	TypeError(tclst_qualt	type_name((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt	_check_itsc
sNˆ|ƒtjdˆdddˆdˆdˆƒ}ˆ|j|ƒ|_|S(NsCUsing class '%s' (either directly or via inheritance) is deprecatedRRRRR(RR!RR(R]R#(R`R[tcls_nameRRR(sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt_cls_decorators
((RatreplacementRRRRRRb((R`R[RRaRRRRsK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt
removed_class
s
		c

CsËtj|ƒrt|ƒ}nFt|tjƒr9|}n+tjt|ƒƒ\}}	t	d|	ƒ‚d|}
|rd|}nd
}tj|
d|d|d|d|ƒ}tj|d|d	|ƒd
S(s6Helper 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)
    sAUnexpected module type '%s' (expected string or module type only)s#The '%s' module usage is deprecateds, please use %s insteadRRRRRRRN(
RtismoduleRt
isinstanceRXtstring_typesRRR0R\RR!R+(
tmoduleRcRRRRRRJR^R_R%RRR#((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pytremoved_module+s"	


	(RMRRXRPt
debtcollectorRRRR
tobjectRRORTRdRi(((sK/home/tvault/.virtenv/lib/python2.7/site-packages/debtcollector/removals.pyt<module>s$		~R