]> git.pld-linux.org Git - packages/dbus.git/blob - dbus-python_fixes.patch
- for 0.35.2
[packages/dbus.git] / dbus-python_fixes.patch
1 --- dbus-0.34/python/dbus_bindings.pyx.orig     2005-05-19 22:27:19.000000000 +0200
2 +++ dbus-0.34/python/dbus_bindings.pyx          2005-07-01 11:34:26.369756328 +0200
3 @@ -1246,7 +1246,12 @@
4          return dbus_message_set_destination(self.msg, destination)
5  
6      def get_destination(self):
7 -        return dbus_message_get_destination(self.msg)
8 +        cdef char *destination
9 +        destination = dbus_message_get_destination(self.msg)
10 +        if destination == NULL:
11 +            return None
12 +        else:
13 +            return destination
14  
15      def set_sender(self, sender):
16          return dbus_message_set_sender(self.msg, sender)
17 @@ -1254,7 +1259,7 @@
18      def get_sender(self):
19          cdef char *sender
20          sender = dbus_message_get_sender(self.msg)
21 -        if (sender == NULL):
22 +        if sender == NULL:
23              return None
24          else:
25              return sender
This page took 0.03689 seconds and 4 git commands to generate.