summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/unicodedata.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 /Modules/clinic/unicodedata.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 'Modules/clinic/unicodedata.c.h')
-rw-r--r--Modules/clinic/unicodedata.c.h45
1 files changed, 13 insertions, 32 deletions
diff --git a/Modules/clinic/unicodedata.c.h b/Modules/clinic/unicodedata.c.h
index 13e6bf9..d520c1e 100644
--- a/Modules/clinic/unicodedata.c.h
+++ b/Modules/clinic/unicodedata.c.h
@@ -26,8 +26,7 @@ unicodedata_UCD_decimal(PyObject *self, PyObject *args)
int chr;
PyObject *default_value = NULL;
- if (!PyArg_ParseTuple(args,
- "C|O:decimal",
+ if (!PyArg_ParseTuple(args, "C|O:decimal",
&chr, &default_value))
goto exit;
return_value = unicodedata_UCD_decimal_impl(self, chr, default_value);
@@ -59,8 +58,7 @@ unicodedata_UCD_digit(PyObject *self, PyObject *args)
int chr;
PyObject *default_value = NULL;
- if (!PyArg_ParseTuple(args,
- "C|O:digit",
+ if (!PyArg_ParseTuple(args, "C|O:digit",
&chr, &default_value))
goto exit;
return_value = unicodedata_UCD_digit_impl(self, chr, default_value);
@@ -93,8 +91,7 @@ unicodedata_UCD_numeric(PyObject *self, PyObject *args)
int chr;
PyObject *default_value = NULL;
- if (!PyArg_ParseTuple(args,
- "C|O:numeric",
+ if (!PyArg_ParseTuple(args, "C|O:numeric",
&chr, &default_value))
goto exit;
return_value = unicodedata_UCD_numeric_impl(self, chr, default_value);
@@ -121,9 +118,7 @@ unicodedata_UCD_category(PyObject *self, PyObject *arg)
PyObject *return_value = NULL;
int chr;
- if (!PyArg_Parse(arg,
- "C:category",
- &chr))
+ if (!PyArg_Parse(arg, "C:category", &chr))
goto exit;
return_value = unicodedata_UCD_category_impl(self, chr);
@@ -151,9 +146,7 @@ unicodedata_UCD_bidirectional(PyObject *self, PyObject *arg)
PyObject *return_value = NULL;
int chr;
- if (!PyArg_Parse(arg,
- "C:bidirectional",
- &chr))
+ if (!PyArg_Parse(arg, "C:bidirectional", &chr))
goto exit;
return_value = unicodedata_UCD_bidirectional_impl(self, chr);
@@ -182,9 +175,7 @@ unicodedata_UCD_combining(PyObject *self, PyObject *arg)
int chr;
int _return_value;
- if (!PyArg_Parse(arg,
- "C:combining",
- &chr))
+ if (!PyArg_Parse(arg, "C:combining", &chr))
goto exit;
_return_value = unicodedata_UCD_combining_impl(self, chr);
if ((_return_value == -1) && PyErr_Occurred())
@@ -217,9 +208,7 @@ unicodedata_UCD_mirrored(PyObject *self, PyObject *arg)
int chr;
int _return_value;
- if (!PyArg_Parse(arg,
- "C:mirrored",
- &chr))
+ if (!PyArg_Parse(arg, "C:mirrored", &chr))
goto exit;
_return_value = unicodedata_UCD_mirrored_impl(self, chr);
if ((_return_value == -1) && PyErr_Occurred())
@@ -248,9 +237,7 @@ unicodedata_UCD_east_asian_width(PyObject *self, PyObject *arg)
PyObject *return_value = NULL;
int chr;
- if (!PyArg_Parse(arg,
- "C:east_asian_width",
- &chr))
+ if (!PyArg_Parse(arg, "C:east_asian_width", &chr))
goto exit;
return_value = unicodedata_UCD_east_asian_width_impl(self, chr);
@@ -278,9 +265,7 @@ unicodedata_UCD_decomposition(PyObject *self, PyObject *arg)
PyObject *return_value = NULL;
int chr;
- if (!PyArg_Parse(arg,
- "C:decomposition",
- &chr))
+ if (!PyArg_Parse(arg, "C:decomposition", &chr))
goto exit;
return_value = unicodedata_UCD_decomposition_impl(self, chr);
@@ -310,8 +295,7 @@ unicodedata_UCD_normalize(PyObject *self, PyObject *args)
const char *form;
PyObject *input;
- if (!PyArg_ParseTuple(args,
- "sO!:normalize",
+ if (!PyArg_ParseTuple(args, "sO!:normalize",
&form, &PyUnicode_Type, &input))
goto exit;
return_value = unicodedata_UCD_normalize_impl(self, form, input);
@@ -342,8 +326,7 @@ unicodedata_UCD_name(PyObject *self, PyObject *args)
int chr;
PyObject *default_value = NULL;
- if (!PyArg_ParseTuple(args,
- "C|O:name",
+ if (!PyArg_ParseTuple(args, "C|O:name",
&chr, &default_value))
goto exit;
return_value = unicodedata_UCD_name_impl(self, chr, default_value);
@@ -375,13 +358,11 @@ unicodedata_UCD_lookup(PyObject *self, PyObject *arg)
const char *name;
Py_ssize_clean_t name_length;
- if (!PyArg_Parse(arg,
- "s#:lookup",
- &name, &name_length))
+ if (!PyArg_Parse(arg, "s#:lookup", &name, &name_length))
goto exit;
return_value = unicodedata_UCD_lookup_impl(self, name, name_length);
exit:
return return_value;
}
-/*[clinic end generated code: output=1f04e31ae703ffed input=a9049054013a1b77]*/
+/*[clinic end generated code: output=4f8da33c6bc6efc9 input=a9049054013a1b77]*/