usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyo000064400000005674147205101360017352 0ustar00ó Àfc@sxdZddlmZddlmZddlmZmZddl Z defd„ƒYZ defd „ƒYZdS( sy Customized Mixin2to3 support: - adds support for converting doctests This module raises an ImportError on Python 2. iÿÿÿÿ(t Mixin2to3(tlog(tRefactoringTooltget_fixers_from_packageNtDistutilsRefactoringToolcBs#eZd„Zd„Zd„ZRS(cOstj||ŒdS(N(Rterror(tselftmsgtargstkw((s9/usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyt log_errorscGstj||ŒdS(N(Rtinfo(RRR((s9/usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyt log_messagescGstj||ŒdS(N(Rtdebug(RRR((s9/usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyt log_debugs(t__name__t __module__R R R(((s9/usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyRs  RcBs&eZed„Zd„Zd„ZRS(cCsŸ|jjtk rdS|s dStjddj|ƒƒ|jƒ|jƒ|r‹tj r›t |j ƒ}|j |dtdtƒq›nt j||ƒdS(NsFixing t twritet doctests_only(t distributiontuse_2to3tTrueRR tjoint_Mixin2to3__build_fixer_namest_Mixin2to3__exclude_fixerst setuptoolstrun_2to3_on_doctestsRt fixer_namestrefactort _Mixin2to3trun_2to3(Rtfilestdocteststr((s9/usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyRs   cCs†|jr dSg|_x'tjD]}|jjt|ƒƒq W|jjdk r‚x-|jjD]}|jjt|ƒƒq_WndS(N(RRtlib2to3_fixer_packagestextendRRtuse_2to3_fixerstNone(Rtp((s9/usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyt__build_fixer_names.s  cCsqt|dgƒ}|jjdk r:|j|jjƒnx0|D](}||jkrA|jj|ƒqAqAWdS(Ntexclude_fixers(tgetattrRtuse_2to3_exclude_fixersR&R$Rtremove(Rtexcluded_fixerst fixer_name((s9/usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyt__exclude_fixers8s  (RRtFalseRRR(((s9/usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyRs  ( t__doc__tdistutils.utilRRt distutilsRtlib2to3.refactorRRRR(((s9/usr/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyts