MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
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�/__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