| Server IP : 104.21.37.246 / Your IP : 104.23.243.32 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python2.6/site-packages/dbus/ |
Upload File : |
# Backwards-compatibility with the old dbus_bindings.
from warnings import warn as _warn
_dbus_bindings_warning = DeprecationWarning("""\
The dbus_bindings module is not public API and will go away soon.
Most uses of dbus_bindings are applications catching the exception
dbus.dbus_bindings.DBusException. You should use dbus.DBusException
instead (this is compatible with all dbus-python versions since 0.40.2).
If you need additional public API, please contact the maintainers via
<[email protected]>.
""")
_warn(_dbus_bindings_warning, DeprecationWarning, stacklevel=2)
# Exceptions
from dbus.exceptions import DBusException
class ConnectionError(Exception): pass
# Types
from dbus.types import *
# Messages
from _dbus_bindings import Message, SignalMessage as Signal,\
MethodCallMessage as MethodCall,\
MethodReturnMessage as MethodReturn,\
ErrorMessage as Error
# MessageIter has gone away, thankfully
# Connection
from _dbus_bindings import Connection
from dbus import Bus
bus_request_name = Bus.request_name
bus_release_name = Bus.release_name