MOON
Server: Apache
System: Linux vps.erhabenn.com.br 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User: sonne (1011)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/azurelinuxagent/common/future.pyc
�
d�bc@s�ddlZddlZddlZddlZddlZyddlZWnek
r_nXejddkr�ddlj	Z
ddlmZe
ZeZddlmZmZddlmZddlmZmZddlZn�ejddkrddlZ
ddlmZddlmZmZeZeZeZeZejd	d
krlddlmZq�ddlmZne dj!ej���d�Z"d
�Z#d�Z$d�Z%ej&d��Z'd�Z(dS(i����Nii(turlparse(tinttrange(tOrderedDict(tQueuetEmptyiiisUnknown python version: {0}cCs�y�tj|f}ttjd|d|��}tjjd�rOt�}n|sk|dddgkrut|�Stj�dj	�}|j
|�Wntk
r�t|�SX|S(sqAbstract platform.linux_distribution() call which is deprecated as of
       Python 3.5 and removed in Python 3.7tfull_distribution_nametsupported_distss/etc/openwrt_releaseti(tplatformt_supported_diststlisttlinux_distributiontostpathtexiststget_openwrt_platformt"get_linux_distribution_from_distrotstriptappendtAttributeError(t
get_full_nameRt	supportedtosinfot	full_name((sA/usr/lib/python2.7/site-packages/azurelinuxagent/common/future.pytget_linux_distributionIs	

cCs?ttjd|��}tj�dj�}|j|�|S(s?Get the distribution information from the distro Python module.Ri(RtdistroRRR(RRR((sA/usr/lib/python2.7/site-packages/azurelinuxagent/common/future.pyRds	
cCs�d	d	d	g}tjd�}tjd�}tdd���}|j�}xs|D]k}|j|�}|j|�}|r�|jd�|d<qR|rR|jd�dkr�d|d<q�qRqRWWd	QX|S(
s�
    Add this workaround for detecting OpenWRT products because
    the version and product information is contained in the /etc/openwrt_release file.
    s)^DISTRIB_RELEASE=['\"](\d+\.\d+.\d+)['\"]s^DISTRIB_ID=['\"]([\w-]+)['\"]s/etc/openwrt_releasetritOpenWrttopenwrtiN(tNonetretcompiletopent	readlinestmatchtgroup(tresulttopenwrt_versiontopenwrt_producttfhtcontenttlinetversion_matchestproduct_matches((sA/usr/lib/python2.7/site-packages/azurelinuxagent/common/future.pyRss
cCs\tjddkr/t|t�o.|jdkStjddkrOt|t�St|t�S(Niii(tsystversion_infot
isinstancetOSErrorterrnotFileNotFoundError(t	exception((sA/usr/lib/python2.7/site-packages/azurelinuxagent/common/future.pytis_file_not_found_error�s

ccswtjddkrtjVnUz8yttjd�}|VWntk
rTdVnXWd|dk	rr|j	�nXdS(Niisa+(
R-R.t
subprocesstDEVNULLR!R
tdevnullt	ExceptionRtclose(R7((sA/usr/lib/python2.7/site-packages/azurelinuxagent/common/future.pytsubprocess_dev_null�s	

cCsWtjddkr|j�StjddkrMtjddkrM|j�S|j�S(Niiiii(R-R.ttostringttobytes(tbuff((sA/usr/lib/python2.7/site-packages/azurelinuxagent/common/future.pytarray_to_bytes�s

&
()t
contextlibR	R-R
RRR8R.thttp.clienttclientt
httpclientturllib.parseRtstrtustrt
memoryviewt
bytebuffertbuiltinsRRtcollectionsRtqueueRRR5thttplibtunicodetbuffertxrangetlongtordereddicttImportErrortformatRRRR4tcontextmanagerR:R>(((sA/usr/lib/python2.7/site-packages/azurelinuxagent/common/future.pyt<module>sF