From: Adrian Zgorzalek Date: Tue, 2 Aug 2011 13:20:39 +0000 (-0400) Subject: Fix compilation error using python2.7 X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=commitdiff_plain;h=4eb130b3c5452f03de23ffbe36a671465204a699;ds=inline Fix compilation error using python2.7 Fix compilation error in account.pyx. Signed-off-by: Adrian Zgorzalek --- diff --git a/account.pyx b/account.pyx index a33df6c..81d6ab9 100644 --- a/account.pyx +++ b/account.pyx @@ -622,11 +622,12 @@ cdef class Account: def set_active_status(self, type, msg=None): cdef status.PurpleStatusType *c_statustype = NULL cdef savedstatuses.PurpleSavedStatus *c_savedstatus = NULL + cdef char* msg_literal = "message" if self.__exists: if msg: account.purple_account_set_status(self._get_structure(), - type, True, "message", msg, NULL) + type, True, msg_literal, msg, NULL) else: account.purple_account_set_status(self._get_structure(), type, True, NULL)