403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/progress.cpython-313.pyc
�

p��g� ��n�SrSSKrSSKrSr"SS5r"SS5rSrSS	jr"S
S5rg)
�google�Nc��[USS5nUcgU"5(dg[RRS5S:Xagg)z�Detect if we can use pretty progress bars on file F.

If this returns true we expect that a human may be looking at that
output, and that we can repaint a line to update it.

This doesn't check the policy for whether we *should* use them.
�isattyNF�TERM�dumbT)�getattr�os�environ�get)�frs  �1/usr/lib/python3/dist-packages/breezy/progress.py�_supports_progressrsA���Q��$�
'�F�
�~���8�8��

�z�z�~�~�f���'���c�`�\rSrSrSrSSjrSrSSjrSrSr	S	r
SS
jrSrSr
S
rSrg)�ProgressTask�4a=Model component of a progress indicator.

Most code that needs to indicate progress should update one of these,
and it will in turn update the display, if one is present.

Code updating the task may also set fields as hints about how to display
it: show_pct, show_spinner, show_eta, show_count, show_bar.  UIs
will not necessarily respect all these fields.

The message given when updating a task must be unicode, not bytes.

Attributes:
  update_latency: The interval (in seconds) at which the PB should be
    updated.  Setting this to zero suggests every update should be shown
    synchronously.

  show_transport_activity: If true (default), transport activity
    will be shown when this task is drawn.  Disable it if you're sure
    that only irrelevant or uninteresting transport activity can occur
    during this task.
Nc���XlSUlSUlSUlSUlX lX0lSUlSUlSUl	SUl
SUlSUlSUl
g)aeConstruct a new progress task.

Args:
  parent_task: Enclosing ProgressTask or None.
  progress_view: ProgressView to display this ProgressTask.
  ui_factory: The UI factory that will display updates;
    deprecated in favor of passing progress_view directly.

Normally you should not call this directly but rather through
`ui_factory.nested_progress_bar`.
rN�FT)Fg�������?)�_parent_task�_last_update�	total_cnt�current_cnt�msg�
ui_factory�
progress_view�show_pct�show_spinner�show_eta�
show_count�show_bar�update_latency�show_transport_activity)�self�parent_taskrrs    r
�__init__�ProgressTask.__init__Ksg��(��������������$��*����
� ��� ��
������
�!���'+��$rc��SRURRURURUR
5$)Nz{}({!r}/{!r}, msg={!r}))�format�	__class__�__name__rrr�r#s r
�__repr__�ProgressTask.__repr__gs6��(�/�/��N�N�#�#�T�%5�%5�t�~�~�t�x�x�
�	
rc���XlX lU(aX0lUR(aURR	U5 gUR
R
U5 g)zvReport updated task message and if relevent progress counters.

The message given must be unicode, not a byte string.
N)rrrr�
show_progressr�_progress_updated)r#rrrs    r
�update�ProgressTask.updatelsF��
��&���&�N�������,�,�T�2��O�O�-�-�d�3rc�:�URUR5 g�N)r1rr+s r
�tick�ProgressTask.tickzs�����D�H�H�rc��UR(aURRU5 gURRU5 gr4)r�
task_finishedr�_progress_finishedr+s r
�finished�ProgressTask.finished}s1��������,�,�T�2��O�O�.�.�t�4rc�>�[XRURS9$)N)rr)rrrr+s r
�
make_sub_task�ProgressTask.make_sub_task�s����_�_�D�<N�<N�
�	
rc���URb7UR(a&[UR5U-UR-nOUnURcU$UcSnURR	U5$)zkReturn fractional completion of this task and its parents.

Returns None if no completion can be computed.
�)rr�floatr�_overall_completion_fraction)r#�child_fraction�own_fractions   r
rB�)ProgressTask._overall_completion_fraction�so��
���'�D�N�N�!�$�"2�"2�3�n�D����V�L�*�L����$����#�"���$�$�A�A�,�O�Orc��UR(aURR5 gURR5 gr4)r�clearr�
clear_termr+s r
rG�ProgressTask.clear�s/��������$�$�&��O�O�&�&�(rc��U$r4�r+s r
�	__enter__�ProgressTask.__enter__�s���rc�$�UR5 g)NF)r:)r#�exc_type�exc_val�exc_tbs    r
�__exit__�ProgressTask.__exit__�s���
�
��r)rrrrrr rrrrr"rrr!�NNN)NN)r@)r*�
__module__�__qualname__�__firstlineno__�__doc__r%r,r1r5r:r=rBrGrLrR�__static_attributes__rKrr
rr4s:���,,�8
�
4��5�
�
P�$)��rrc�:�\rSrSrSrSrS
SjrSrSrSr	S	r
g)�
DummyProgress�aBProgress-bar standin that does nothing.

This was previously often constructed by application code if no progress
bar was explicitly passed in.  That's no longer recommended: instead, just
create a progress task from the ui_factory.  This class can be used in
test code that needs to fake a progress task for some reason.
c��gr4rKr+s r
r5�DummyProgress.tick����rNc��gr4rK)r#r�current�totals    r
r1�DummyProgress.update�r_rc��gr4rK)r#�messagerarbs    r
�child_update�DummyProgress.child_update�r_rc��gr4rKr+s r
rG�DummyProgress.clear�r_rc��[S0UD6$)NrK)r[)r#�kwargss  r
�child_progress�DummyProgress.child_progress�s���&�v�&�&rrKrT)r*rUrVrWrXr5r1rfrGrlrYrKrr
r[r[�s ���
�
�
�
�'rr[c�Z�Ucg[[U55nSUS-US-S-US-4-$)Nz-:--:--z%d:%02d:%02di�<)�int�round)�delts r
�
str_tdeltars�s;���|���u�T�{��D��T�D�[�4�"�9��*:�D�2�I�F�F�Frc�N�UcgU(dgX:agX:�ag[R"5U-
nUS:ag[U5[U5-[U5-nU(aA[U5U:�a2[U5[[U55-nX�U-
-n	Xv-
n
X�-S-$Xv-
$)Ng@�)�timerA�len�sum)�
start_timerarb�enough_samples�last_updates�n_recent�elapsed�total_duration�avg�	time_left�
old_time_lefts           r
�get_etar��s���������������i�i�k�J�&�G���}���7�^�e�E�l�2�U�7�^�C�N���L�)�X�5��,��%��L�(9�":�:���7�?�+�	�&�0�
��)�Q�.�.��#�#rc�$�\rSrSrSrSrSrSrg)�
ProgressPhase��z.Update progress object with the current phase.c�`�[RU5 X0lXlX lSUlgr4)�objectr%�pbrerb�	cur_phase)r#rerbr�s    r
r%�ProgressPhase.__init__�s$������������
���rc���URcSUlOU=RS-
slURRURURUR5 g)Nr�)r�r�r1rerbr+s r
�
next_phase�ProgressPhase.next_phase�sA���>�>�!��D�N��N�N�a��N������t�|�|�T�^�^�T�Z�Z�@r)r�rer�rbN)r*rUrVrWrXr%r�rYrKrr
r�r��s��8��Arr�)�N�
)	�
__docformat__r	rvrrr[rsr�r�rKrr
�<module>r�sT��"�
��
���.x�x�v'�'�2G�OQ�$�DA�Ar

Youez - 2016 - github.com/yon3zu
LinuXploit