| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.6/site-packages/pip/_internal/utils/__pycache__/ |
Upload File : |
3
�N�a& � @ sp d dl Z d dlZd dlmZmZ ee d�dd�Zee d�dd�Zee d�dd �Zeeef d�d
d�Z dS )� N)�Optional�Tuple)�returnc C s t � p
t� S )z9Returns glibc version string, or None if not using glibc.)�glibc_version_string_confstr�glibc_version_string_ctypes� r r �/usr/lib/python3.6/glibc.py�glibc_version_string s r c
C sD t jdkrdS ytjd�j� \} }W n tttfk
r> dS X |S )z@Primary implementation of glibc_version_string using os.confstr.�win32NZCS_GNU_LIBC_VERSION)�sys�platform�os�confstr�split�AttributeError�OSError�
ValueError)�_�versionr r r r s
r c C sr yddl } W n tk
r dS X | jd�}y
|j}W n tk
rJ dS X | j|_|� }t|t�sn|j d�}|S )z=Fallback implementation of glibc_version_string using ctypes.r N�ascii)
�ctypes�ImportErrorZCDLL�gnu_get_libc_versionr Zc_char_pZrestype�
isinstance�str�decode)r Zprocess_namespacer Zversion_strr r r r s
r c C s t � } | dkrdS d| fS dS )z�Try to determine the glibc version
Returns a tuple of strings (lib, version) which default to empty strings
in case the lookup fails.
N� Zglibc)r r )r )Z
glibc_versionr r r �libc_verN s r )
r
r Ztypingr r r r r r r r r r r �<module> s /