%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/jeepney/integrate/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/jeepney/integrate/blocking.py

"""Deprecated: use jeepney.io.blocking instead"""
from warnings import warn

from jeepney.io.blocking import *

warn("jeepney.integrate.blocking is deprecated: please use jeepney.io.blocking "
     "instead.", stacklevel=2)

def connect_and_authenticate(bus='SESSION') -> DBusConnection:
    conn = open_dbus_connection(bus)
    conn._unwrap_reply = True  # Backward compatible behaviour
    return conn


if __name__ == '__main__':
    conn = connect_and_authenticate()
    print("Unique name:", conn.unique_name)

Zerion Mini Shell 1.0