def connect(self, address='session'):
        """Connect to *address* and wait until the connection is established.

        The *address* argument must be a D-BUS server address, in the format
        described in the D-BUS specification. It may also be one of the special
        addresses ``'session'`` or ``'system'``, to connect to the D-BUS
        session and system bus, respectively.
        """
        if isinstance(address, six.string_types):
            addresses = parse_dbus_address(address)
        else:
            addresses = [address]
        for addr in addresses:
            try:
                super(DbusClient, self).connect(addr)
            except pyuv.error.UVError:
                continue
            break
        else:
            raise DbusError('could not connect to any address')
        # Wait for authentication to complete
        self.get_unique_name()
def connect ( self , address = 'session' ) : if isinstance ( address , six . string_types ) : addresses = parse_dbus_address ( address ) else : addresses = [ address ] for addr in addresses : try : super ( DbusClient , self ) . connect ( addr ) except pyuv . error . UVError : continue break else : raise DbusError ( 'could not connect to any address' ) self . get_unique_name ( )
Connect to *address* and wait until the connection is established.

        The *address* argument must be a D-BUS server address, in the format
        described in the D-BUS specification. It may also be one of the special
        addresses ``'session'`` or ``'system'``, to connect to the D-BUS
        session and system bus, respectively.