Git commit 081087075a30fc3dff749595d9a695860394fd9c by Shaheed Haque. Committed on 30/04/2016 at 19:17. Pushed by shaheed into branch 'srhaque-new-sip-generator'. Unbreak support for second declaration in %MethodCode. M +1 -1 sip_generation/rules_engine.py http://commits.kde.org/pykde5/081087075a30fc3dff749595d9a695860394fd9c diff --git a/sip_generation/rules_engine.py b/sip_generation/rules_engine.py index cf4392e..25ceff6 100755 --- a/sip_generation/rules_engine.py +++ b/sip_generation/rules_engine.py @@ -613,7 +613,7 @@ class MethodCodeDb(AbstractCompiledCodeDb): # The user might provide one or other or both of decl2 and fn_= result2 to signify a C++ signature. If # needed, default a missing value from decl/fn_result. # - if sip["decl2"] or sip["fn_result2"]: + if "decl2" in entry or "fn_result2" in entry: sip["decl2"] =3D entry.get("decl2", sip["decl"]) sip["fn_result2"] =3D entry.get("fn_result2", sip["fn_resu= lt2"]) #