Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/jeepney/integrate/ |
Upload File : |
"""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)