summaryrefslogtreecommitdiffstats
path: root/Python/clinic/bltinmodule.c.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-23 21:40:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-23 21:40:51 (GMT)
commit247789cee99c8933c140110791d136cbe37a003b (patch)
treeb29885b10378b1b31f51609bf719bd4f6c7de306 /Python/clinic/bltinmodule.c.h
parenta30e2256f70bd43255e8dae6459c70540f118b62 (diff)
downloadcpython-247789cee99c8933c140110791d136cbe37a003b.zip
cpython-247789cee99c8933c140110791d136cbe37a003b.tar.gz
cpython-247789cee99c8933c140110791d136cbe37a003b.tar.bz2
Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the
same line as function name.
Diffstat (limited to 'Python/clinic/bltinmodule.c.h')
-rw-r--r--Python/clinic/bltinmodule.c.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h
index 83e4f69..bbca534 100644
--- a/Python/clinic/bltinmodule.c.h
+++ b/Python/clinic/bltinmodule.c.h
@@ -93,8 +93,7 @@ builtin_format(PyModuleDef *module, PyObject *args)
PyObject *value;
PyObject *format_spec = NULL;
- if (!PyArg_ParseTuple(args,
- "O|U:format",
+ if (!PyArg_ParseTuple(args, "O|U:format",
&value, &format_spec))
goto exit;
return_value = builtin_format_impl(module, value, format_spec);
@@ -121,9 +120,7 @@ builtin_chr(PyModuleDef *module, PyObject *arg)
PyObject *return_value = NULL;
int i;
- if (!PyArg_Parse(arg,
- "i:chr",
- &i))
+ if (!PyArg_Parse(arg, "i:chr", &i))
goto exit;
return_value = builtin_chr_impl(module, i);
@@ -169,8 +166,7 @@ builtin_compile(PyModuleDef *module, PyObject *args, PyObject *kwargs)
int dont_inherit = 0;
int optimize = -1;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs,
- "OO&s|iii:compile", _keywords,
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO&s|iii:compile", _keywords,
&source, PyUnicode_FSDecoder, &filename, &mode, &flags, &dont_inherit, &optimize))
goto exit;
return_value = builtin_compile_impl(module, source, filename, mode, flags, dont_inherit, optimize);
@@ -664,4 +660,4 @@ builtin_issubclass(PyModuleDef *module, PyObject *args)
exit:
return return_value;
}
-/*[clinic end generated code: output=b308ab64aa4d4ff8 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=9b34d1ca57effad8 input=a9049054013a1b77]*/