summaryrefslogtreecommitdiffstats
path: root/Modules/_winapi.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-09 13:16:06 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-09 13:16:06 (GMT)
commit5dee6551e2b98792bc6336206f763623483e7883 (patch)
treee18dfc32e889ca62dc3a0d3f4cd1484353d7a6aa /Modules/_winapi.c
parent2561bf6ae0a16576321cfb8cb900869b109b2263 (diff)
downloadcpython-5dee6551e2b98792bc6336206f763623483e7883.zip
cpython-5dee6551e2b98792bc6336206f763623483e7883.tar.gz
cpython-5dee6551e2b98792bc6336206f763623483e7883.tar.bz2
Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7.
Diffstat (limited to 'Modules/_winapi.c')
-rw-r--r--Modules/_winapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_winapi.c b/Modules/_winapi.c
index c4d4264..2396fe2 100644
--- a/Modules/_winapi.c
+++ b/Modules/_winapi.c
@@ -175,7 +175,7 @@ class HANDLE_return_converter(CReturnConverter):
self.declare(data)
self.err_occurred_if("_return_value == INVALID_HANDLE_VALUE", data)
data.return_conversion.append(
- 'if (_return_value == NULL)\n Py_RETURN_NONE;\n')
+ 'if (_return_value == NULL) {\n Py_RETURN_NONE;\n}\n')
data.return_conversion.append(
'return_value = HANDLE_TO_PYNUM(_return_value);\n')
@@ -188,7 +188,7 @@ class DWORD_return_converter(CReturnConverter):
data.return_conversion.append(
'return_value = Py_BuildValue("k", _return_value);\n')
[python start generated code]*/
-/*[python end generated code: output=da39a3ee5e6b4b0d input=374076979596ebba]*/
+/*[python end generated code: output=da39a3ee5e6b4b0d input=94819e72d2c6d558]*/
#include "clinic/_winapi.c.h"