Ñò b-äQc@skdZdddgZddkZddkZddkZddkZddkZeZyddkl Z Wn3e j o'ei djo d„Z q¡‚nXheid 6d ei d d 6ei id dƒdd6ei d6ei ƒd6eiƒd6e ƒd6dd6Zd„Zdeifd„ƒYZd„Zd„ZeiƒZd„Zdd„ZdS(sìInterpret PEP 345 environment markers. EXPR [in|==|!=|not in] EXPR [or|and] ... where EXPR belongs to any of those: python_version = '%s.%s' % (sys.version_info[0], sys.version_info[1]) python_full_version = sys.version.split()[0] os.name = os.name sys.platform = sys.platform platform.version = platform.version() platform.machine = platform.machine() platform.python_implementation = platform.python_implementation() a free string, like '2.6', or 'win32' tdefault_environmenttcompilet interpretiÿÿÿÿN(tpython_implementationtjavacCsdS(NtJython((((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyR!ss sys.platforms%s.%sitpython_versiont iitpython_full_versionsos.namesplatform.versionsplatform.machinesplatform.python_implementationtextracCs ttƒS(s2Return copy of default PEP 385 globals dictionary.(tdictt_VARS(((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyR4st ASTWhitelistc Bs©eZd„Zeieieieieiei fZ e ei ei f7Z e ei eieieieieieieieieif 7Z d„Zd„ZRS(cCs ||_dS(N(t statement(tselfR ((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyt__init__9scCsNt||iƒp(td|id|idfƒ‚ntii||ƒS(s-Ensure statement only contains allowed nodes.s)Not allowed in environment markers. %s %sRt^(t isinstancetALLOWEDt SyntaxErrorR t col_offsettasttNodeTransformertvisit(Rtnode((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyRBs cCs8tid|ii|if|iƒ}ti||ƒS(s&Flatten one level of attribute access.s%s.%s(RtNametvaluetidtattrtctxt copy_location(RRtnew_node((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pytvisit_AttributeJs((t__name__t __module__RRtComparetBoolOpt AttributeRtLoadtStrRtAndtOrtEqtGttGtEtIntIstIsNottLttLtEtNotEqtNotInRR (((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyR 8s  *F cCs.ti|ddƒ}t|ƒi|ƒ}|S(Ntmodeteval(RtparseR t generic_visit(tmarkerttreetnew_tree((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyt parse_markerOscCst|dddtƒS(NsR5t dont_inherit(t_builtin_compiletTrue(t parsed_marker((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pytcompile_markerTscs„y t|SWntj onX|iƒpddd„}n(tt|ƒƒ‰dd‡fd†}||_|t|(t environmenttoverride((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyt marker_fnascsK|djo h}n|djo tƒ}n|i|ƒtˆ|ƒS(soverride updates environmentN(tNoneRtupdateR5(RBRC(tcompiled_marker(s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyRDfs      N(t_cachetKeyErrortstripRER@R;t__doc__(R8RD((RGs8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyRZs    cCst|ƒ|ƒS(N(R(R8RB((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyRrs(RKt__all__RtostplatformtsystweakrefRR=Rt ImportErrortnamet version_infotversiontsplittmachineRER RRR R;R@tWeakValueDictionaryRHR(((s8/usr/lib/python2.6/vendor-packages/_markerlib/markers.pyts8