pidgin: 373dcef3: *** Plucked rev 8e8959be (sadrul at pidgin....

sadrul at pidgin.im sadrul at pidgin.im
Mon Feb 2 19:55:21 EST 2009


-----------------------------------------------------------------
Revision: 373dcef37042813bc15485de75725e625a149bf6
Ancestor: 3224dd8677b28d02b866cce510941fbf67e0fcb7
Author: sadrul at pidgin.im
Date: 2009-02-03T00:55:57
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/373dcef37042813bc15485de75725e625a149bf6

Modified files:
        libpurple/dbus-analyze-functions.py

ChangeLog: 

*** Plucked rev 8e8959be (sadrul at pidgin.im):
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