,9Mc@sdZdZddkZddkZddkZdeiifdYZdefdYZ defd YZ d efd YZ d e fd YZ defdYZ defdYZdefdYZde fdYZde fdYZde fdYZde fdYZdefdYZdefdYZd efd!YZd"efd#YZd$efd%YZd&efd'YZd(efd)YZd*efd+YZd,efd-YZd.e fd/YZd0efd1YZd2efd3YZd4e fd5YZ d6efd7YZ!d8efd9YZ"d:efd;YZ#d<efd=YZ$d>a%ga&da(d?Z)d@Z*dAdBZ+dCZ,dDZ-dS(EsHSCons.Warnings This file implements the warnings framework for SCons. s;src/engine/SCons/Warnings.py 4629 2010/01/17 22:23:21 sconsiNtWarningcBseZRS((t__name__t __module__(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR%stMandatoryWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR(stFutureDeprecatedWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR-stDeprecatedWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR0stMandatoryDeprecatedWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR3stCacheWriteErrorWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR:stCorruptSConsignWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR=stDependencyWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR @stDeprecatedCopyWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR CstDeprecatedOptionsWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR Fst!DeprecatedSourceSignaturesWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR Ist!DeprecatedTargetSignaturesWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR LstDuplicateEnvironmentWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyROstFutureReservedVariableWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRRst LinkWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRUstMisleadingKeywordsWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRXstMissingSConscriptWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR[stNoMD5ModuleWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR^stNoMetaclassSupportWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRastNoObjectCountWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRdstNoParallelSupportWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRgstPythonVersionWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRjstReservedVariableWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRmstStackSizeWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRpstTaskmasterNeedsExecuteWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRsstVisualCMissingWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRvstVisualVersionMismatchcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR{stVisualStudioMissingWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyR~stFortranCxxMixWarningcBseZRS((RR(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyRsicCstid|dfdS(sISuppresses all warnings that are of type clazz or derived from clazz.iN(t_enabledtinsert(tclazz((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pytsuppressWarningClassscCstid|dfdS(sISuppresses all warnings that are of type clazz or derived from clazz.iiN(RR (R!((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pytenableWarningClasssicCst}|a|S(sBTurn warnings into exceptions. Returns the old value of the flag.(t_warningAsException(tflagtold((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pytwarningAsExceptionscGsm||}xZtD]R\}}t||o6|o*to |ntot|q`nPqqWdS(N(Rt isinstanceR$t _warningOut(R!targstwarningR%((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pytwarns   cCs6d}x&|D]}titi|d}d}|ddjod}|d=nt|djo|ddjo d}n tit||dd}yt|}Wn'tj oti i d |qX|ot |qt |t od }ti i ||qt|qWd S( s`Process string specifications of enabling/disabling warnings, as passed to the --warn option or the SetOption('warn') function. An argument to this option should be of the form or no-. The warning class is munged in order to get an actual class name from the classes above, which we need to pass to the {enable,disable}WarningClass() functions. The supplied is split on hyphens, each element is capitalized, then smushed back together. Then the string "Warning" is appended to get the class name. For example, 'deprecated' will enable the DeprecatedWarning class. 'no-dependency' will disable the .DependencyWarning class. As a special case, --warn=all and --warn=no-all will enable or disable (respectively) the base Warning class of all warnings. cSs2|d djod|dSnti|SdS(NitsconstSCons(tstringt capitalize(ts((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyt _capitalizest-iitnotallRtsNo warning type: '%s' s)Can not disable mandataory warning: '%s' N(R/tsplittlowertlentjointmaptglobalstKeyErrortsyststderrtwriteR#t issubclassRR"(t argumentsR2targtelemstenablet class_nameR!tfmt((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pytprocess_warn_stringss*  $ (.t__doc__t __revision__R/R>t SCons.ErrorsR.tErrorst UserErrorRRRRRRRR R R R R RRRRRRRRRRRRRRRRRR$RtNoneR)R"R#R'R,RH(((s3install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyssR