From a50e5cd6b6bef7c0e25332b4669a25fc3abd76c7 Mon Sep 17 00:00:00 2001 From: Bruno Abinader Date: Tue, 16 Jun 2009 07:25:40 -0400 Subject: [PATCH] Fixes for cython 0.11-2. Added an integer cast to fix a cython compilation error, Fixed a comment typo, removed duplicated include. Signed-off-by: Bruno Abinader --- conversation_cbs.pxd | 2 +- purple.pyx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/conversation_cbs.pxd b/conversation_cbs.pxd index 573ef15..542bfcd 100644 --- a/conversation_cbs.pxd +++ b/conversation_cbs.pxd @@ -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 (flags & conversation.PURPLE_MESSAGE_SEND): flag = "SEND" else: flag = "RECV" diff --git a/purple.pyx b/purple.pyx index 9c7691d..24cfe2c 100644 --- a/purple.pyx +++ b/purple.pyx @@ -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" -- 1.7.9.5