From a2dd532f0298682419802de3af8cc18156658416 Mon Sep 17 00:00:00 2001 From: Neil Rashbrook Date: Sat, 19 Sep 2009 18:10:09 +0100 Subject: [PATCH] Bug 508780 Followup to make qsgen.py compatible with Python 2.4 r=peterv --- js/src/xpconnect/src/qsgen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/src/xpconnect/src/qsgen.py b/js/src/xpconnect/src/qsgen.py index 83ce70960d2..2b7fe9dac6a 100644 --- a/js/src/xpconnect/src/qsgen.py +++ b/js/src/xpconnect/src/qsgen.py @@ -697,8 +697,10 @@ def writeQuickStub(f, customMethodCalls, member, stubName, isSetter=False): if isMethod: code = customMethodCall['code'] + elif isGetter: + code = customMethodCall['getter_code'] else: - code = customMethodCall['getter_code' if isGetter else 'setter_code'] + code = customMethodCall['setter_code'] stubName = templateName else: callTemplate = ""