mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 13:00:07 +01:00
Merge pull request #1879 from swt2c/fix_sipgenerator_conditional
Fix conditional in sip_generator generateCppMethod_sip()
This commit is contained in:
@@ -925,11 +925,11 @@ from .%s import *
|
||||
# SIP appends them all together.
|
||||
_needDocstring = False
|
||||
stream.write('%s%%MethodCode\n' % indent)
|
||||
if not (method.isCtor and method.isDtor):
|
||||
if not (method.isCtor or method.isDtor):
|
||||
stream.write('%sPyErr_Clear();\n' % (indent+' '*4))
|
||||
stream.write('%sPy_BEGIN_ALLOW_THREADS\n' % (indent+' '*4))
|
||||
stream.write(nci(method.body, len(indent)+4))
|
||||
if not (method.isCtor and method.isDtor):
|
||||
if not (method.isCtor or method.isDtor):
|
||||
stream.write('%sPy_END_ALLOW_THREADS\n' % (indent+' '*4))
|
||||
stream.write('%sif (PyErr_Occurred()) sipIsErr = 1;\n' % (indent+' '*4))
|
||||
stream.write('%s%%End\n\n' % indent)
|
||||
|
||||
Reference in New Issue
Block a user