Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/sdnotify/__pycache__/__init__.cpython-311.pyc



]j-hddlZddlZddlZdZejdkrdZnddlZdZGddZdS)Nz0.3.2)c|S)Nxs q/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/sdnotify/__init__.py_br	sc6tj|dS)Nr)codecslatin_1_encoders rr	r	s$Q''**r
c eZdZdZddZdZdS)SystemdNotifierzThis class holds a connection to the systemd notification socket
    and can be used to send messages to systemd using its notify method.Fc.||_	tjtjtj|_t	jd}|ddkr
d|ddz}|j|dS#d|_|jrYdSxYw)aInstantiate 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.
        
NOTIFY_SOCKETr@N)debugsocketAF_UNIX
SOCK_DGRAMosgetenvconnect)selfraddrs   r__init__zSystemdNotifier.__init__s
		 -8IJJDK9_--DAw#~~d122hK%%%%%	DKz



sA5BBcv	|jt|dS#|jrYdSxYw)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)rsendallr	r)rstates  rnotifyzSystemdNotifier.notify-sN	K5		*****	z



s'+
8N)F)__name__
__module____qualname____doc__rr"rr
rrrsCLL,r
r)rrsys__version__version_infor	rrrr
r<module>r*s



				




dMMM+++((((((((((r
Back to Directory File Manager