summaryrefslogtreecommitdiff
path: root/Include/complexobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/complexobject.h')
-rw-r--r--Include/complexobject.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Include/complexobject.h b/Include/complexobject.h
index c379b08916..1934f3b380 100644
--- a/Include/complexobject.h
+++ b/Include/complexobject.h
@@ -63,9 +63,12 @@ PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op);
/* Format the object based on the format_spec, as defined in PEP 3101
(Advanced String Formatting). */
#ifndef Py_LIMITED_API
-PyAPI_FUNC(PyObject *) _PyComplex_FormatAdvanced(PyObject *obj,
- Py_UNICODE *format_spec,
- Py_ssize_t format_spec_len);
+PyAPI_FUNC(int) _PyComplex_FormatAdvancedWriter(
+ _PyUnicodeWriter *writer,
+ PyObject *obj,
+ PyObject *format_spec,
+ Py_ssize_t start,
+ Py_ssize_t end);
#endif
#ifdef __cplusplus