/usr/lib/python2.6/site-packages/debtcollector
NameSizeModeActions
fixtures/-0755rm
tests/-0755rm
moves.py47270644editdlrm
moves.pyc42720644editdlrm
removals.py67310644editdlrm
removals.pyc52400644editdlrm
renames.py16560644editdlrm
renames.pyc14740644editdlrm
updating.py23890644editdlrm
updating.pyc19940644editdlrm
_utils.py59440644editdlrm
_utils.pyc47870644editdlrm
__init__.py22250644editdlrm
__init__.pyc18460644editdlrm
Edit: /usr/lib/python2.6/site-packages/debtcollector/_utils.pyc (4787B)
Ñò }DVc @s®ddkZddkZddkZddkZy eiZWnej o eZnXd Zddd„Z d„Z ddddd„Z e d „Zd „Zd „ZdS( iÿÿÿÿNtbuiltinst __builtin__t __builtins__t exceptionscCsX|djo t}n|djoti|d|ƒnti|d|d|ƒdS(s„Warns about some type of deprecation that has been (or will be) made. This helper function makes it easier to interact with the warnings module by standardizing the arguments that the warning function recieves so that it is easier to use. This should be used to emit warnings to users (users can easily turn these warnings off/on, see https://docs.python.org/2/library/warnings.html as they see fit so that the messages do not fill up the users logs with warnings that they do not wish to see in production) about functions, methods, attributes or other code that is deprecated and will be removed in a future release (this is done using these warnings to avoid breaking existing users of those functions, methods, code; which a library should avoid doing by always giving at *least* N + 1 release for users to address the deprecation warnings). tcategoryt stacklevelN(tNonetDeprecationWarningtwarningstwarn(tmessageRR((s;/tmp/pip-build-lt8jXN/debtcollector/debtcollector/_utils.pyt deprecation#s    cCs5yt|ifSWntj ot|ifSXdS(N(tTruet __qualname__tAttributeErrortFalset__name__(tobj((s;/tmp/pip-build-lt8jXN/debtcollector/debtcollector/_utils.pytget_qualified_name<scCs |g}|o|id|ƒn|o3|djo|idƒq_|id|ƒn|o|i|ƒn|o|id|ƒndi|ƒS(sDHelper to generate a common message 'style' for deprecation helpers.s in version '%s't?s( and will be removed in a future versions$ and will be removed in version '%s's: %st(tappendtjoin(tprefixtpostfixR tversiontremoval_versiontmessage_components((s;/tmp/pip-build-lt8jXN/debtcollector/debtcollector/_utils.pytgenerate_messageDs    cCst|tiƒpt|ƒ}ny|itj}Wntj on2X|o)y |iSWq|tj o |iSXng}y|i |iƒWn#tj o|i |iƒnX|o1y|i d|iƒWqôtj oqôXndi |ƒS(sÛGet class name for object. If object is a type, fully qualified name of the type is returned. Else, fully qualified name of the type of the object is returned. For builtin types, just name is returned. it.( t isinstancetsixt class_typesttypet __module__t_BUILTIN_MODULESRR RRtinsertR(Rtfully_qualifiedtbuilt_intpieces((s;/tmp/pip-build-lt8jXN/debtcollector/debtcollector/_utils.pytget_class_nameXs,   cCsAti|ƒpdSyti|ƒSWntj odSXdS(s;Gets the ``self`` object attached to this method (or none).N(tinspecttismethodRRtget_method_selfR(tmethod((s;/tmp/pip-build-lt8jXN/debtcollector/debtcollector/_utils.pyR+xs cCst|ƒ}|dj oqt|tiƒo |}n t|ƒ}y|i|if}Wq‚tj o|i|i |i f}q‚Xnùt i |ƒpt i |ƒowy|i|if}Wq‚tj oNt |dƒo%|i}|i|i |i f}q|i|i f}q‚Xnbt|ƒ}|tjo |}ny|i|if}Wn%tj o|i|i f}nXdi|ƒS(seGenerate a name from callable. Tries to do the best to guess fully qualified callable name. tim_classRN(R+RRRR R!R"R RRR)R*t isfunctionthasattrR-t _TYPE_TYPER(tfunctiont method_selfR-tparts((s;/tmp/pip-build-lt8jXN/debtcollector/debtcollector/_utils.pytget_callable_name‚s4    !     (sbuiltinss __builtin__s __builtins__s exceptions(R)ttypesRRtTypeTypeR0RR!R#RR RRR R(R+R4(((s;/tmp/pip-build-lt8jXN/debtcollector/debtcollector/_utils.pyts