pidgin.next.minor: 8e8959be: Fix building with python < 2.5
sadrul at pidgin.im
sadrul at pidgin.im
Mon Feb 2 19:45:32 EST 2009
-----------------------------------------------------------------
Revision: 8e8959bebcec9ad48d075004bd7e03b0c918f958
Ancestor: 91321b70a887f4ea293901d8dcb03de7f301595e
Author: sadrul at pidgin.im
Date: 2009-02-03T00:45:21
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/8e8959bebcec9ad48d075004bd7e03b0c918f958
Modified files:
libpurple/dbus-analyze-functions.py
ChangeLog:
Fix building with python < 2.5
-------------- next part --------------
============================================================
--- libpurple/dbus-analyze-functions.py dcf8bb920176112ce4fe51782a8d17025f9d6b94
+++ libpurple/dbus-analyze-functions.py 02b0f76555acbe1f7b7729bbc17bd78698d2ffa7
@@ -497,7 +497,7 @@ class ServerBinding (Binding):
# This is a total hack, but self.call is set up before the parameters
# are processed, so we can't tell it to pass a parameter by reference.
self.call = "%s(%s)" % (self.function.name,
- ", ".join(param.name if param.name != "len" else "&len" for param in self.params))
+ ", ".join([(param.name, "&len")[param.name == "len"] for param in self.params]))
self.cdecls.append("\tgconstpointer %s;" % name)
self.ccode.append("\t%s = %s;" % (name, self.call))
More information about the Commits
mailing list