From df42e53ab497dce7f00bd2eb3f2af1c022c0096c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 24 Apr 2007 13:51:51 +0100 Subject: [PATCH] Remove trailing whitespace in Python source --- dbus/_dbus.py | 8 ++++---- dbus/decorators.py | 2 +- dbus/proxies.py | 10 +++++----- dbus/service.py | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dbus/_dbus.py b/dbus/_dbus.py index 353b2fd..6b1ac16 100644 --- a/dbus/_dbus.py +++ b/dbus/_dbus.py @@ -134,7 +134,7 @@ class SignalMatch(object): rule.append("member='%s'" % self._member) for kwarg, value in kwargs.iteritems(): rule.append("%s='%s'" % (kwarg, value)) - + self._rule = ','.join(rule) def __str__(self): @@ -337,7 +337,7 @@ class Bus(BusImplementation): def get_session(private=False): """Static method that returns a connection to the session bus. - + :Parameters: `private` : bool If true, do not return a shared connection. @@ -348,7 +348,7 @@ class Bus(BusImplementation): def get_system(private=False): """Static method that returns a connection to the system bus. - + :Parameters: `private` : bool If true, do not return a shared connection. @@ -707,7 +707,7 @@ class Interface: """ self._obj = object self._dbus_interface = dbus_interface - + __dbus_object_path__ = property (lambda self: self._obj.__dbus_object_path__, None, None, "The D-Bus object path of the " diff --git a/dbus/decorators.py b/dbus/decorators.py index 9a7be2f..40b850a 100644 --- a/dbus/decorators.py +++ b/dbus/decorators.py @@ -58,7 +58,7 @@ def method(dbus_interface, in_signature=None, out_signature=None, async_callback return value will be ignored; instead, a pair of callbacks are passed as keyword arguments, and the decorated method is expected to arrange for one of them to be called. - + On success the success callback must be called, passing the results of this method as positional parameters in the format given by the `out_signature`. diff --git a/dbus/proxies.py b/dbus/proxies.py index 3ade930..e88bdfb 100644 --- a/dbus/proxies.py +++ b/dbus/proxies.py @@ -163,7 +163,7 @@ class _ProxyMethod: interface=dbus_interface, method=self._method_name) message.set_destination(self._named_service) - + # Add the arguments to the function try: message.append(signature=introspect_sig, *args) @@ -253,7 +253,7 @@ class ProxyObject: #PendingCall object for Introspect call self._pending_introspect = None - #queue of async calls waiting on the Introspect to return + #queue of async calls waiting on the Introspect to return self._pending_introspect_queue = [] #dictionary mapping method names to their input signatures self._introspect_method_map = {} @@ -266,7 +266,7 @@ class ProxyObject: self._introspect_state = self.INTROSPECT_STATE_DONT_INTROSPECT else: self._introspect_state = self.INTROSPECT_STATE_INTROSPECT_IN_PROGRESS - + self._pending_introspect = self._Introspect() def connect_to_signal(self, signal_name, handler_function, dbus_interface=None, **keywords): @@ -339,10 +339,10 @@ class ProxyObject: def _Introspect(self): message = _dbus_bindings.MethodCallMessage(None, self.__dbus_object_path__, 'org.freedesktop.DBus.Introspectable', 'Introspect') message.set_destination(self._named_service) - + result = self._bus.get_connection().send_message_with_reply(message, _ReplyHandler(self._introspect_reply_handler, self._introspect_error_handler, utf8_strings=True), -1) return result - + def _introspect_execute_queue(self): # FIXME: potential to flood the bus # We should make sure mainloops all have idle handlers diff --git a/dbus/service.py b/dbus/service.py index aa3a659..775133f 100644 --- a/dbus/service.py +++ b/dbus/service.py @@ -416,7 +416,7 @@ class Object(Interface): self._object_path = object_path self._name = bus_name self._bus = conn - + self._connection = self._bus.get_connection() self._connection._register_object_path(object_path, self._message_cb, self._unregister_cb) -- 2.11.4.GIT