diff --git a/Cython/Includes/cpython/buffer.pxd b/Cython/Includes/cpython/buffer.pxd
index 01023e650f82a8cd1d50b7a4173c7f844cbe3dda..f5b63cb279c24bfe3cfa69004e2995210f8ea95a 100644
--- a/Cython/Includes/cpython/buffer.pxd
+++ b/Cython/Includes/cpython/buffer.pxd
@@ -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).
diff --git a/Cython/Includes/cpython/object.pxd b/Cython/Includes/cpython/object.pxd
index 077b2add269bc961a87e4bfb8b55a967c5b73e28..dc166a57716baa9b98cb3233259d436f3e9085d4 100644
--- a/Cython/Includes/cpython/object.pxd
+++ b/Cython/Includes/cpython/object.pxd
@@ -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