diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-09 13:03:23 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-09 13:03:23 (GMT) |
| commit | 2561bf6ae0a16576321cfb8cb900869b109b2263 (patch) | |
| tree | 3c68ceb9dd358d9bfa26148e127a08e5981194bf /Modules/cmathmodule.c | |
| parent | 877826ad3db74e7afe2d48fb358e02560b325943 (diff) | |
| parent | ebe95fdabb42b02ff7eecab6bc9637cf5ccf1d2c (diff) | |
| download | cpython-2561bf6ae0a16576321cfb8cb900869b109b2263.zip cpython-2561bf6ae0a16576321cfb8cb900869b109b2263.tar.gz cpython-2561bf6ae0a16576321cfb8cb900869b109b2263.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.c | 14 |
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" |
