HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/share/python3/debpython/__pycache__/__init__.cpython-39.pyc
a

�j`U�@s�zddlmZWney&dZYn0ddlZddlZddlmZmZddlmZe�	e
�Ze�d�Z
Gdd�d�Zd
dd	�ZdS)�)�datetimeN)�PIPE�Popen)�dumpsz4.*?/usr/lib/python(\d(?:.\d+)?)/(site|dist)-packagesc@seZdZdd�Zdd�ZdS)�memoizecCs||_i|_dS�N)�func�cache)�selfr�r�(/usr/share/python3/debpython/__init__.py�__init__szmemoize.__init__cOs6t||f�}||jvr,|j|i|��|j|<|j|Sr)rr	r)r
�args�kwargs�keyrrr�__call__s
zmemoize.__call__N)�__name__�
__module__�__qualname__r
rrrrrrsrc	Csd||d�}d}|durnv|dur2|jttd�n^|r�t|t�rNd}t|d�}trj|�d�t���	���|�d�|��|�
�|j||d�t�d	|�t
|fi|���L}|��\}}|o�|��t|j|o�t|d
�|o�t|d
�d�Wd�S1�s0YdS)a<Execute external shell commad.

    :param cdw: currennt working directory
    :param env: environment
    :param log_output:
        * opened log file or path to this file, or
        * None if output should be included in the returned dict, or
        * False if output should be redirectored to stdout/stderr
    T)�shell�cwd�envFN)�stdout�stderr�az
# command executed on {}z
$ {}
zinvoking: %szutf-8)�
returncoderr)�updater�
isinstance�str�openr�write�formatZnowZ	isoformat�flush�log�debugrZcommunicate�close�dictr)	ZcommandrrZ
log_outputrr%Zprocessrrrrr�executes.


�r')NNN)r�ImportErrorZlogging�re�
subprocessrr�picklerZ	getLoggerrr#�compileZ
PUBLIC_DIR_RErr'rrrr�<module>s