HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //usr/lib/python3/dist-packages/uaclient/api/__pycache__/__init__.cpython-310.pyc
o

Uٵg	�@sfddlZddlZddlmZe�d��e���Gdd�dejd�ZGdd�de�Z	Gd	d
�d
�Z
dS)�N)�Optional�	ubuntuproc
@s4eZdZejdededeedeefdd��ZdS)�AbstractProgress�total_steps�
done_steps�previous_step_message�current_step_messagecC�dS�N���selfrrrrrr�7/usr/lib/python3/dist-packages/uaclient/api/__init__.py�progress
s	zAbstractProgress.progressN)	�__name__�
__module__�__qualname__�abc�abstractmethod�intr�strrrrrrr	s����r)�	metaclassc	@s.eZdZdededeedeefdd�ZdS)�NullProgressrrrrcCr	r
rrrrrrszNullProgress.progressN)rrrrrrrrrrrrs����rc@sTeZdZddeefdd�Zdefdd�Zdd	�Zdd
efdd�Z	d
e
fdd�ZdS)�ProgressWrapperN�progress_objectcCs.|dur||_nt�|_d|_d|_d|_dS)Nr���)rrrrr)r
rrrr�__init__#s
zProgressWrapper.__init__�messagecCs2|jj|j|j|j|d�||_|jd7_dS)N�rrrr�)rrrrr)r
rrrrr,s�zProgressWrapper.progresscCs&|j|_|jj|j|j|jdd�dS)Nr)rrrrr�r
rrr�finish6s
�zProgressWrapper.finish�eventcCs"t|jd�r|j�||�dSdS)z�
        This is our secret event system. We use it internally to insert prompts
        and extra messages in the middle of operations at certain points.
        We don't consider this stable enough to expose to the public API.
        �	_on_eventN)�hasattrrr#)r
r"�payloadrrr�emit?s�zProgressWrapper.emit�returncCst|jd�r
|jjSdS)N�is_interactiveF)r$rr(r rrrr(HszProgressWrapper.is_interactiver
)rrrrrrrrr!r&�boolr(rrrrr"s	
		r)r�logging�typingr�	getLogger�
addHandler�NullHandler�ABCMetarrrrrrr�<module>s