changeset 25434:f03d0745c2c2

Fix building with python < 2.5
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 03 Feb 2009 00:45:21 +0000
parents e0572c12265a
children fabd8eda763d
files libpurple/dbus-analyze-functions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dbus-analyze-functions.py	Wed Jan 28 19:26:43 2009 +0000
+++ b/libpurple/dbus-analyze-functions.py	Tue Feb 03 00:45:21 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))