summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Python/importdl.c
diff options
context:
space:
mode:
authorshadchin <[email protected]>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/tools/python3/src/Python/importdl.c
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Python/importdl.c')
-rw-r--r--contrib/tools/python3/src/Python/importdl.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/tools/python3/src/Python/importdl.c b/contrib/tools/python3/src/Python/importdl.c
index 134f6680c44..4ffa1ba2874 100644
--- a/contrib/tools/python3/src/Python/importdl.c
+++ b/contrib/tools/python3/src/Python/importdl.c
@@ -42,9 +42,9 @@ get_encoded_name(PyObject *name, const char **hook_prefix) {
/* Get the short name (substring after last dot) */
name_len = PyUnicode_GetLength(name);
- if (name_len < 0) {
- return NULL;
- }
+ if (name_len < 0) {
+ return NULL;
+ }
lastdot = PyUnicode_FindChar(name, '.', 0, name_len, -1);
if (lastdot < -1) {
return NULL;
@@ -122,11 +122,11 @@ _PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *fp)
if (path == NULL)
goto error;
- if (PySys_Audit("import", "OOOOO", name_unicode, path,
- Py_None, Py_None, Py_None) < 0) {
- goto error;
- }
-
+ if (PySys_Audit("import", "OOOOO", name_unicode, path,
+ Py_None, Py_None, Py_None) < 0) {
+ goto error;
+ }
+
#ifdef MS_WINDOWS
exportfunc = _PyImport_FindSharedFuncptrWindows(hook_prefix, name_buf,
path, fp);
@@ -184,7 +184,7 @@ _PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *fp)
m = NULL;
goto error;
}
- if (Py_IS_TYPE(m, NULL)) {
+ if (Py_IS_TYPE(m, NULL)) {
/* This can happen when a PyModuleDef is returned without calling
* PyModuleDef_Init on it
*/
@@ -207,7 +207,7 @@ _PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *fp)
/* don't allow legacy init for non-ASCII module names */
PyErr_Format(
PyExc_SystemError,
- "initialization of %s did not return PyModuleDef",
+ "initialization of %s did not return PyModuleDef",
name_buf);
goto error;
}