ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/_markerlib/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/self/root/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>






!				

Zerion Mini Shell 1.0