# HG changeset patch # User Sadrul Habib Chowdhury # Date 1233621921 0 # Node ID f03d0745c2c2f9a06cccff367f0a087b4076d3fe # Parent e0572c12265abbbdc02cb8f782a47d6939194a12 Fix building with python < 2.5 diff -r e0572c12265a -r f03d0745c2c2 libpurple/dbus-analyze-functions.py --- 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))