diff libpurple/dbus-analyze-functions.py @ 25048:2520d5fe48a3

*** Plucked rev 8e8959be (sadrul@pidgin.im): Fix building with python < 2.5
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 03 Feb 2009 00:55:57 +0000
parents a1c4ae9a2fcc
children 1de01f9594c8 750f087d1df3
line wrap: on
line diff
--- a/libpurple/dbus-analyze-functions.py	Mon Feb 02 22:20:04 2009 +0000
+++ b/libpurple/dbus-analyze-functions.py	Tue Feb 03 00:55:57 2009 +0000
@@ -497,7 +497,7 @@
         # 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))