Skip to content

Commit 0998130

Browse files
committed
Restore initial layout
1 parent 7a7228c commit 0998130

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Doc/c-api/file.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,19 @@ the :mod:`io` APIs instead.
6060
raised if the end of the file is reached immediately.
6161
6262
63-
.. c:type:: PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *)
64-
65-
Equivalent of :c:expr:`PyObject *(\*)(PyObject *path,
66-
void *userData)`, where *path* is guaranteed to be
67-
:c:type:`PyUnicodeObject`.
68-
69-
.. versionadded:: 3.8
70-
71-
7263
.. c:function:: int PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction handler)
7364
7465
Overrides the normal behavior of :func:`io.open_code` to pass its parameter
7566
through the provided handler.
7667
77-
The *handler* is a function of type :c:type:`Py_OpenCodeHookFunction`.
68+
The *handler* is a function of type:
69+
70+
.. c:namespace:: NULL
71+
.. c:type:: PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *)
72+
73+
Equivalent of :c:expr:`PyObject *(\*)(PyObject *path,
74+
void *userData)`, where *path* is guaranteed to be
75+
:c:type:`PyUnicodeObject`.
7876
7977
The *userData* pointer is passed into the hook function. Since hook
8078
functions may be called from different runtimes, this pointer should not

0 commit comments

Comments
 (0)