Viewing File: /usr/lib/python2.7/site-packages/_markerlib/markers.pyo

ó
>¿êQc@s­dZdddgZddlZddlZddlZddlZddlZeZyddlm	Z	Wn/e
k
rœejdkr–d„Z	q‚nXiejd	6d
ejd d6ej
jd
dƒdd6ejd6ej
ƒd6ejƒd6e	ƒd6dd6ZxCeejƒƒD]/Zdekr!eeeejddƒ<q!q!Wd„Zdejfd„ƒYZd„Zd„Zejƒ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((((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pyR!sssys.platforms%s.%sitpython_versiont iitpython_full_versionsos.namesplatform.versionsplatform.machinesplatform.python_implementationtextrat.t_cCs
ttƒS(s2Return copy of default PEP 385 globals dictionary.(tdictt_VARS(((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pyR8stASTWhitelistcBs©eZd„Zejejejejejej	fZ
e
ejejf7Z
e
ej
ejejejejejejejejejf
7Z
d„Zd„ZRS(cCs
||_dS(N(t	statement(tselfR((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pyt__init__=scCsLt||jƒs9td|jd|jdfƒ‚ntjj||ƒS(s-Ensure statement only contains allowed nodes.s)Not allowed in environment markers.
%s
%sRt^(t
isinstancetALLOWEDtSyntaxErrorRt
col_offsettasttNodeTransformertvisit(Rtnode((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pyRFs
cCs8tjd|jj|jf|jƒ}tj||ƒS(s&Flatten one level of attribute access.s%s.%s(RtNametvaluetidtattrtctxt
copy_location(RRtnew_node((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pytvisit_AttributeNs((t__name__t
__module__RRtComparetBoolOpt	AttributeRtLoadtStrRtAndtOrtEqtGttGtEtIntIstIsNottLttLtEtNotEqtNotInRR"(((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pyR<s	*F	cCs.tj|ddƒ}t|ƒj|ƒ}|S(Ntmodeteval(RtparseRt
generic_visit(tmarkerttreetnew_tree((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pytparse_markerSscCst|dddtƒS(Ns<environment marker>R7tdont_inherit(t_builtin_compiletTrue(t
parsed_marker((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pytcompile_markerXscs€yt|SWntk
rnX|jƒs>ddd„}n'tt|ƒƒ‰dd‡fd†}||_|t|<t|S(sCReturn compiled marker as a function accepting an environment dict.cSstS(t(R@(tenvironmenttoverride((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pyt	marker_fnescsG|dkri}n|dkr-tƒ}n|j|ƒtˆ|ƒS(soverride updates environmentN(tNoneRtupdateR7(RDRE(tcompiled_marker(s6/usr/lib/python2.7/site-packages/_markerlib/markers.pyRFjs	
N(t_cachetKeyErrortstripRGRBR=t__doc__(R:RF((RIs6/usr/lib/python2.7/site-packages/_markerlib/markers.pyR^s
	
cCst|ƒ|ƒS(N(R(R:RD((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pyRvs(RMt__all__RtostplatformtsystweakrefRR?RtImportErrortnametversion_infotversiontsplittmachineRGR
tlisttkeystvartreplaceRRRR=RBtWeakValueDictionaryRJR(((s6/usr/lib/python2.7/site-packages/_markerlib/markers.pyt<module>s>






!				
Back to Directory File Manager