Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/cloudinit/__pycache__/simpletable.cpython-310.pyc
o

}��f��@sGdd�d�ZdS)c@sHeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dS)�SimpleTablezRA minimal implementation of PrettyTable
    for distribution with cloud-init.
    cCs,||_g|_dgt|j�|_|�|�dS)N�)�fields�rows�len�
column_widths�update_column_widths)�selfr�r	�7/usr/lib/python3/dist-packages/cloudinit/simpletable.py�__init__szSimpleTable.__init__cCs0t|�D]\}}tt|�|j|�|j|<qdS�N)�	enumerate�maxrr)r�values�i�valuer	r	r
rs�z SimpleTable.update_column_widthscCsBt|�t|j�kr
td��dd�|D�}|j�|�|�|�dS)Nztoo many valuescSsg|]}t|��qSr	)�str)�.0rr	r	r
�
<listcomp>sz'SimpleTable.add_row.<locals>.<listcomp>)rr�	TypeErrorr�appendr)rrr	r	r
�add_rows
zSimpleTable.add_rowcCsdd�dd�|jD��dS)z+Returns a horizontal divider for the table.�+cSsg|]}d|d�qS)�-�r	)r�wr	r	r
r%sz%SimpleTable._hdiv.<locals>.<listcomp>)�joinr�rr	r	r
�_hdiv"s�zSimpleTable._hdivcs$dd��fdd�t|�D��dS)zReturns a formatted row.�|cs$g|]\}}|��j|d��qS)r)�centerr)rr�colrr	r
r-s��z$SimpleTable._row.<locals>.<listcomp>)rr
)r�rowr	rr
�_row(s
�����zSimpleTable._rowcsF������j����g}|�fdd��jD����g7}d�|�S)z�Returns a string representation of the table with lines around.

        +-----+-----+
        | one | two |
        +-----+-----+
        |  1  |  2  |
        |  01 |  10 |
        +-----+-----+
        csg|]}��|��qSr	)r#)r�rrr	r
r@sz'SimpleTable.__str__.<locals>.<listcomp>�
)rr#rrr)r�linesr	rr
�__str__5s
"
zSimpleTable.__str__cCs|��Sr)r'rr	r	r
�
get_stringCszSimpleTable.get_stringN)�__name__�
__module__�__qualname__�__doc__rrrrr#r'r(r	r	r	r
r	s	
rN)rr	r	r	r
�<module>s

Spamworldpro Mini