indent the GIL macros

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-05-10 22:39:12 +00:00
parent cb5e679b6d
commit ec06cdb967

View File

@@ -747,7 +747,7 @@ from %s import *
stream.write('sipCpp = %s(%s);\n' % (fname, pnames))
else:
stream.write('PyErr_Clear();\n')
stream.write('Py_BEGIN_ALLOW_THREADS\n')
stream.write('%sPy_BEGIN_ALLOW_THREADS\n' % (indent+' '*4))
stream.write(indent+' '*4)
if method.type != 'void':
stream.write('sipRes = ')
@@ -762,7 +762,7 @@ from %s import *
stream.write('%s(sipCpp%s);\n' % (fname, pnames))
else:
stream.write('%s(%s);\n' % (fname, pnames))
stream.write('Py_END_ALLOW_THREADS\n')
stream.write('%sPy_END_ALLOW_THREADS\n' % (indent+' '*4))
stream.write('%sif (PyErr_Occurred()) sipIsErr = 1;\n' % (indent+' '*4))
stream.write('%s%%End\n' % indent)