summaryrefslogtreecommitdiffstats
path: root/Modules/cmathmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-09 13:02:15 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-09 13:02:15 (GMT)
commitebe95fdabb42b02ff7eecab6bc9637cf5ccf1d2c (patch)
treeec1edb5c2b4313eb69036e259aa3cfee277a0d5c /Modules/cmathmodule.c
parentefe7256083bb94e85ce7b5ca5fa3122a5c0ce7a3 (diff)
downloadcpython-ebe95fdabb42b02ff7eecab6bc9637cf5ccf1d2c.zip
cpython-ebe95fdabb42b02ff7eecab6bc9637cf5ccf1d2c.tar.gz
cpython-ebe95fdabb42b02ff7eecab6bc9637cf5ccf1d2c.tar.bz2
Issue #26305: Argument Clinic now escapes braces. No need to double them.
Diffstat (limited to 'Modules/cmathmodule.c')
-rw-r--r--Modules/cmathmodule.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c
index 7f6c2c9..82ea589 100644
--- a/Modules/cmathmodule.c
+++ b/Modules/cmathmodule.c
@@ -27,20 +27,20 @@ class Py_complex_protected_return_converter(CReturnConverter):
self.declare(data)
data.return_conversion.append("""
PyFPE_END_PROTECT(_return_value);
-if (errno == EDOM) {{
+if (errno == EDOM) {
PyErr_SetString(PyExc_ValueError, "math domain error");
goto exit;
-}}
-else if (errno == ERANGE) {{
+}
+else if (errno == ERANGE) {
PyErr_SetString(PyExc_OverflowError, "math range error");
goto exit;
-}}
-else {{
+}
+else {
return_value = PyComplex_FromCComplex(_return_value);
-}}
+}
""".strip())
[python start generated code]*/
-/*[python end generated code: output=da39a3ee5e6b4b0d input=231019039a6fbb9a]*/
+/*[python end generated code: output=da39a3ee5e6b4b0d input=345daa075b1028e7]*/
#if (FLT_RADIX != 2 && FLT_RADIX != 16)
#error "Modules/cmathmodule.c expects FLT_RADIX to be 2 or 16"