Commit 6ac14e0b authored by Stefan Behnel's avatar Stefan Behnel

move misplaced PyObject_Format() C-API declaration to right .pxd file

--HG--
extra : transplant_source : Zp%DC%BB8%03%B2%D6%A3%09q%13%25%17%AD6%17%25%1FU
parent b1196d37
......@@ -103,6 +103,7 @@ cdef extern from "Python.h":
# bytes” of the given length. Return 0 on success and -1 (with
# raising an error) on error.
# DEPRECATED HERE: do not cimport from here, cimport from cpython.object instead
object PyObject_Format(object obj, object format_spec)
# Takes an arbitrary object and returns the result of calling
# obj.__format__(format_spec).
......@@ -285,3 +285,8 @@ cdef extern from "Python.h":
# and returns NULL if the object cannot be iterated.
Py_ssize_t Py_SIZE(object o)
object PyObject_Format(object obj, object format_spec)
# Takes an arbitrary object and returns the result of calling
# obj.__format__(format_spec).
# Added in Py2.6
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment