HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/alt/python38/lib/python3.8/site-packages/sdnotify/__pycache__/__init__.cpython-38.pyc
U

��Y-�@sRddlZddlZddlZdZejdkr0dd�ZnddlZdd�ZGdd�d�ZdS)	�Nz0.3.2)�cCs|S)N���xrr�B/opt/alt/python38/lib/python3.8/site-packages/sdnotify/__init__.py�_bsrcCst�|�dS)Nr)�codecs�latin_1_encoderrrrrsc@s"eZdZdZddd�Zdd�ZdS)	�SystemdNotifierz�This class holds a connection to the systemd notification socket
    and can be used to send messages to systemd using its notify method.FcCsn||_zHt�tjtj�|_t�d�}|ddkr@d|dd�}|j�|�Wnd|_|jrd�YnXdS)a�Instantiate a new notifier object. This will initiate a connection
        to the systemd notification socket.

        Normally this method silently ignores exceptions (for example, if the
        systemd notification socket is not available) to allow applications to
        function on non-systemd based systems. However, setting debug=True will
        cause this method to raise any exceptions generated to the caller, to
        aid in debugging.
        Z
NOTIFY_SOCKETr�@��N)�debug�socketZAF_UNIXZ
SOCK_DGRAM�os�getenvZconnect)�selfrZaddrrrr�__init__s

zSystemdNotifier.__init__cCs.z|j�t|��Wn|jr$�YnXdS)a"Send a notification to systemd. state is a string; see
        the man page of sd_notify (http://www.freedesktop.org/software/systemd/man/sd_notify.html)
        for a description of the allowable values.

        Normally this method silently ignores exceptions (for example, if the
        systemd notification socket is not available) to allow applications to
        function on non-systemd based systems. However, setting debug=True will
        cause this method to raise any exceptions generated to the caller, to
        aid in debugging.N)rZsendallrr)r�staterrr�notify-s

zSystemdNotifier.notifyN)F)�__name__�
__module__�__qualname__�__doc__rrrrrrr
s
r
)rr�sys�__version__�version_inforrr
rrrr�<module>s