Mercurial > pidgin
changeset 25410: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 | 0f2503390a6b |
children | 99e4b9d4ebc6 |
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 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))