Author: jpc                          Date: Fri Jul  1 11:48:50 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix a small python bindings bug (probably there are more but
  searching for them is hardly making me feel better)
  sb. wants to rewrite the whole thing? ;]

---- Files affected:
SOURCES:
   dbus-python_fixes.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/dbus-python_fixes.patch
diff -u /dev/null SOURCES/dbus-python_fixes.patch:1.1
--- /dev/null   Fri Jul  1 13:48:50 2005
+++ SOURCES/dbus-python_fixes.patch     Fri Jul  1 13:48:45 2005
@@ -0,0 +1,25 @@
+--- dbus-0.34/python/dbus_bindings.pyx.in~     2005-05-19 22:27:19.000000000 
+0200
++++ dbus-0.34/python/dbus_bindings.pyx.in      2005-07-01 11:34:26.369756328 
+0200
+@@ -1246,7 +1246,12 @@
+         return dbus_message_set_destination(self.msg, destination)
+ 
+     def get_destination(self):
+-        return dbus_message_get_destination(self.msg)
++        cdef char *destination
++        destination = dbus_message_get_destination(self.msg)
++        if destination == NULL:
++            return None
++        else:
++            return destination
+ 
+     def set_sender(self, sender):
+         return dbus_message_set_sender(self.msg, sender)
+@@ -1254,7 +1259,7 @@
+     def get_sender(self):
+         cdef char *sender
+         sender = dbus_message_get_sender(self.msg)
+-        if (sender == NULL):
++        if sender == NULL:
+             return None
+         else:
+             return sender
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to