Skip to content

Commit 79e5d0e

Browse files
itamaroencukoukumaraditya303vstinner
authored
Apply suggestions from code review
Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
1 parent 1165950 commit 79e5d0e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Doc/c-api/import.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Importing Modules
346346
the same as for :c:func:`PyImport_AppendInittab`.
347347
348348
On success, create and return a module object.
349-
This module will not be initialized; call :c:func:`PyModule_Exec`
349+
This module will not be initialized; call :c:func:`!PyModule_Exec`
350350
to initialize it.
351351
(Custom importers should do this in their
352352
:py:meth:`~importlib.abc.Loader.exec_module` method.)

Include/cpython/import.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
1515
// without needing to go through inittab
1616
PyAPI_FUNC(PyObject *) PyImport_CreateModuleFromInitfunc(
1717
PyObject *spec,
18-
PyObject* (*initfunc)(void));
18+
PyObject *(*initfunc)(void));
1919

2020
struct _frozen {
2121
const char *name; /* ASCII encoded string */
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Add a new :c:func:`PyImport_CreateModuleFromInitfunc` C-API for creating a
2-
module from a **spec** and **initfunc**. Patch by Itamar Oren.
2+
module from a *spec* and *initfunc*. Patch by Itamar Oren.

Programs/_testembed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static PyModuleDef embedded_ext = {
166166
static PyObject*
167167
PyInit_embedded_ext(void)
168168
{
169-
// keep this a single-phase initialization module;
169+
// keep this as a single-phase initialization module;
170170
// see test_create_module_from_initfunc
171171
return PyModule_Create(&embedded_ext);
172172
}

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2445,7 +2445,7 @@ create_builtin(
24452445

24462446
PyObject*
24472447
PyImport_CreateModuleFromInitfunc(
2448-
PyObject *spec, PyObject* (*initfunc)(void))
2448+
PyObject *spec, PyObject *(*initfunc)(void))
24492449
{
24502450
if (initfunc == NULL) {
24512451
PyErr_BadInternalCall();

0 commit comments

Comments
 (0)