ó J9•Qc@sLdZddlmZmZdefd„ƒYZdefd„ƒYZdS(sˆ This plugin installs a DEPRECATED error class for the :class:`DeprecatedTest` exception. When :class:`DeprecatedTest` is raised, the exception will be logged in the deprecated attribute of the result, ``D`` or ``DEPRECATED`` (verbose) will be output, and the exception will not be counted as an error or failure. It is enabled by default, but can be turned off by using ``--no-deprecated``. iÿÿÿÿ(t ErrorClasstErrorClassPlugintDeprecatedTestcBseZdZRS(s7Raise this exception to mark a test as deprecated. (t__name__t __module__t__doc__(((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pyR st DeprecatedcBs>eZdZeZeedddeƒZd„Z d„Z RS(se Installs a DEPRECATED error class for the DeprecatedTest exception. Enabled by default. tlabelt DEPRECATEDt isfailurec Cs;d}|jdddddd|j|tƒdd ƒd S( s&Register commandline options. tNOSE_WITHOUT_DEPRECATEDs--no-deprecatedtactiont store_truetdestt noDeprecatedtdefaultthelps6Disable special handling of DeprecatedTest exceptions.N(t add_optiontgettFalse(tselftparsertenvtenv_opt((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pytoptionsscCs>|js dS||_t|dtƒ}|r:t|_ndS(sConfigure plugin. NR(t can_configuretconftgetattrRtenabled(RRRtdisable((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pyt configure%s   ( RRRtTrueRRRRt deprecatedRR(((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pyRs   N(Rtnose.plugins.errorclassRRt ExceptionRR(((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pyts