Skip to content

Commit bc2f864

Browse files
committed
PEP 7 / code style
1 parent c46ed0d commit bc2f864

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

Modules/clinic/_testclinic_kwds.c.h

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/clinic/libclinic/converters.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,6 @@ def parse_var_keyword(self) -> str:
13161316

13171317
class var_keyword_dict_converter(VarKeywordCConverter):
13181318
type = 'PyObject *'
1319-
format_unit = ''
13201319
c_default = 'NULL'
13211320

13221321
def cleanup(self) -> str:
@@ -1327,7 +1326,9 @@ def parse_var_keyword(self) -> str:
13271326
return f"""
13281327
if (kwargs == NULL) {{{{
13291328
{param_name} = PyDict_New();
1330-
if ({param_name} == NULL) goto exit;
1329+
if ({param_name} == NULL) {{{{
1330+
goto exit;
1331+
}}}}
13311332
}}}}
13321333
else {{{{
13331334
{param_name} = Py_NewRef(kwargs);

0 commit comments

Comments
 (0)