HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/libcloud/utils/__pycache__/xml.cpython-310.pyc
o

;j��@sHgd�Zddd�Zddd�Zddd�Zdd	d
�Zddd�Zdd
d�ZdS))�fixxpath�findtext�findattr�findall�findall_ignore_namespace�findtext_ignore_namespaceNcs&�s|Sd��fdd�|�d�D��S)N�/csg|]}d��|��qS)z{{{}}}{})�format)�.0�e��	namespace��F/opt/saltstack/salt/lib/python3.10/site-packages/libcloud/utils/xml.py�
<listcomp>szfixxpath.<locals>.<listcomp>)�join�split��xpathrr
rrrsr�cCs"|�t||d��}|dkr|S|S)z�
    :param no_text_value: Value to return if the provided element has no text
                          value.
    :type no_text_value: ``object``
    rr�rr)�elementrr�
no_text_value�valuer
r
rr!srcCs,t||||d�}|s|rt||d|d�}|S)a+
    Special version of findtext() which first tries to find the provided value using the provided
    namespace and in case no results are found we fallback to the xpath lookup without namespace.

    This is needed because some providers return some responses with namespace and some without.
    )rrrrN)r)rrrr�resultr
r
rr.s�rcC�|�t||d��S�Nrr�rrrr
r
rr@�rcCrr)rrrr
r
rrDrrcCs(t|||d�}|s|rt||dd�}|S)a*
    Special version of findall() which first tries to find the provided value using the provided
    namespace and in case no results are found we fallback to the xpath lookup without namespace.

    This is needed because some providers return some responses with namespace and some without.
    rN)r)rrrrr
r
rrHsr)N)Nr)�__all__rrrrrrr
r
r
r�<module>s