Fixes for cython 0.11-2.
authorBruno Abinader <bruno.abinader@openbossa.org>
Tue, 16 Jun 2009 11:25:40 +0000 (07:25 -0400)
committerBruno Abinader <bruno.abinader@openbossa.org>
Tue, 16 Jun 2009 11:25:40 +0000 (07:25 -0400)
Added an integer cast to fix a cython compilation error, Fixed a comment
typo, removed duplicated include.

Signed-off-by: Bruno Abinader <bruno.abinader@openbossa.org>

conversation_cbs.pxd
purple.pyx

index 573ef15..542bfcd 100644 (file)
@@ -106,7 +106,7 @@ cdef void write_im(conversation.PurpleConversation *conv, const_char *who, \
         message = None
 
     # FIXME: Maybe we need add more purple flags in the future
-    if flags & conversation.PURPLE_MESSAGE_SEND:
+    if (<int>flags & conversation.PURPLE_MESSAGE_SEND):
         flag = "SEND"
     else:
         flag = "RECV"
index 9c7691d..24cfe2c 100644 (file)
@@ -295,7 +295,7 @@ cdef class Purple:
           "request": request_cbs }[type][name] = callback
 
     def signal_connect(self, name=None, cb=None):
-        '''Connects a signal handler to a signal for a particular object.
+        '''Connects a signal handler to a callback for a particular object.
         Take care not to register a handler function twice. Purple will
         not correct any mistakes for you in this area.
 
@@ -438,7 +438,6 @@ cdef class Purple:
 include "protocol.pyx"
 #include "plugin.pyx"
 include "proxy.pyx"
-#include "protocol.pyx"
 include "account.pyx"
 include "buddy.pyx"
 #include "connection.pyx"