Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a5b25a

Browse files
committed
Strip out trailing whitespace.
1 parent 86508cc commit 9a5b25a

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

Python/import.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <fcntl.h>
2020
#endif
2121
#ifdef __cplusplus
22-
extern "C" {
22+
extern "C" {
2323
#endif
2424

2525
#ifdef MS_WINDOWS
@@ -530,7 +530,7 @@ PyImport_GetMagicNumber(void)
530530
dictionary is stored by calling _PyImport_FixupExtension()
531531
immediately after the module initialization function succeeds. A
532532
copy can be retrieved from there by calling
533-
_PyImport_FindExtension().
533+
_PyImport_FindExtension().
534534
535535
Modules which do support multiple multiple initialization set
536536
their m_size field to a non-negative number (indicating the size
@@ -566,7 +566,7 @@ _PyImport_FixupExtension(PyObject *mod, char *name, char *filename)
566566
}
567567
if (def->m_size == -1) {
568568
if (def->m_base.m_copy) {
569-
/* Somebody already imported the module,
569+
/* Somebody already imported the module,
570570
likely under a different name.
571571
XXX this should really not happen. */
572572
Py_DECREF(def->m_base.m_copy);
@@ -624,7 +624,7 @@ _PyImport_FindExtension(char *name, char *filename)
624624
PySys_WriteStderr("import %s # previously loaded (%s)\n",
625625
name, filename);
626626
return mod;
627-
627+
628628
}
629629

630630

@@ -862,7 +862,7 @@ parse_source_module(const char *pathname, FILE *fp)
862862

863863
flags.cf_flags = 0;
864864
mod = PyParser_ASTFromFile(fp, pathname, NULL,
865-
Py_file_input, 0, 0, &flags,
865+
Py_file_input, 0, 0, &flags,
866866
NULL, arena);
867867
if (mod) {
868868
co = PyAST_Compile(mod, pathname, NULL, arena);
@@ -920,7 +920,7 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat)
920920
mode_t mode = srcstat->st_mode & ~S_IEXEC;
921921
#else
922922
mode_t mode = srcstat->st_mode & ~S_IXUSR & ~S_IXGRP & ~S_IXOTH;
923-
#endif
923+
#endif
924924

925925
fp = open_exclusive(cpathname, mode);
926926
if (fp == NULL) {
@@ -1010,7 +1010,7 @@ load_source_module(char *name, char *pathname, FILE *fp)
10101010
char *cpathname;
10111011
PyCodeObject *co;
10121012
PyObject *m;
1013-
1013+
10141014
if (fstat(fileno(fp), &st) != 0) {
10151015
PyErr_Format(PyExc_RuntimeError,
10161016
"unable to get file status from '%s'",
@@ -1383,7 +1383,7 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
13831383
if (!v)
13841384
return NULL;
13851385
if (PyUnicode_Check(v)) {
1386-
v = PyUnicode_AsEncodedString(v,
1386+
v = PyUnicode_AsEncodedString(v,
13871387
Py_FileSystemDefaultEncoding, NULL);
13881388
if (v == NULL)
13891389
return NULL;
@@ -1456,7 +1456,7 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
14561456
else {
14571457
char warnstr[MAXPATHLEN+80];
14581458
sprintf(warnstr, "Not importing directory "
1459-
"'%.*s': missing __init__.py",
1459+
"'%.*s': missing __init__.py",
14601460
MAXPATHLEN, buf);
14611461
if (PyErr_WarnEx(PyExc_ImportWarning,
14621462
warnstr, 1)) {
@@ -2270,7 +2270,7 @@ get_parent(PyObject *globals, char *buf, Py_ssize_t *p_buflen, int level)
22702270
modname = PyDict_GetItem(globals, namestr);
22712271
if (modname == NULL || !PyUnicode_Check(modname))
22722272
return Py_None;
2273-
2273+
22742274
modpath = PyDict_GetItem(globals, pathstr);
22752275
if (modpath != NULL) {
22762276
/* __path__ is set, so modname is already the package name */
@@ -2643,7 +2643,7 @@ PyImport_ReloadModule(PyObject *m)
26432643
struct filedescr *fdp;
26442644
FILE *fp = NULL;
26452645
PyObject *newm;
2646-
2646+
26472647
if (modules_reloading == NULL) {
26482648
Py_FatalError("PyImport_ReloadModule: "
26492649
"no modules_reloading dictionary!");
@@ -3039,8 +3039,8 @@ imp_load_compiled(PyObject *self, PyObject *args)
30393039
PyObject *m;
30403040
FILE *fp;
30413041
if (!PyArg_ParseTuple(args, "ses|O:load_compiled",
3042-
&name,
3043-
Py_FileSystemDefaultEncoding, &pathname,
3042+
&name,
3043+
Py_FileSystemDefaultEncoding, &pathname,
30443044
&fob))
30453045
return NULL;
30463046
fp = get_file(pathname, fob, "rb");
@@ -3065,8 +3065,8 @@ imp_load_dynamic(PyObject *self, PyObject *args)
30653065
PyObject *m;
30663066
FILE *fp = NULL;
30673067
if (!PyArg_ParseTuple(args, "ses|O:load_dynamic",
3068-
&name,
3069-
Py_FileSystemDefaultEncoding, &pathname,
3068+
&name,
3069+
Py_FileSystemDefaultEncoding, &pathname,
30703070
&fob))
30713071
return NULL;
30723072
if (fob) {
@@ -3094,7 +3094,7 @@ imp_load_source(PyObject *self, PyObject *args)
30943094
PyObject *m;
30953095
FILE *fp;
30963096
if (!PyArg_ParseTuple(args, "ses|O:load_source",
3097-
&name,
3097+
&name,
30983098
Py_FileSystemDefaultEncoding, &pathname,
30993099
&fob))
31003100
return NULL;
@@ -3122,7 +3122,7 @@ imp_load_module(PyObject *self, PyObject *args)
31223122
FILE *fp;
31233123

31243124
if (!PyArg_ParseTuple(args, "sOes(ssi):load_module",
3125-
&name, &fob,
3125+
&name, &fob,
31263126
Py_FileSystemDefaultEncoding, &pathname,
31273127
&suffix, &mode, &type))
31283128
return NULL;
@@ -3146,7 +3146,7 @@ imp_load_module(PyObject *self, PyObject *args)
31463146
PyMem_Free(pathname);
31473147
return NULL;
31483148
}
3149-
}
3149+
}
31503150
ret = load_module(name, fp, pathname, type, NULL);
31513151
PyMem_Free(pathname);
31523152
if (fp)
@@ -3160,7 +3160,7 @@ imp_load_package(PyObject *self, PyObject *args)
31603160
char *name;
31613161
char *pathname;
31623162
PyObject * ret;
3163-
if (!PyArg_ParseTuple(args, "ses:load_package",
3163+
if (!PyArg_ParseTuple(args, "ses:load_package",
31643164
&name, Py_FileSystemDefaultEncoding, &pathname))
31653165
return NULL;
31663166
ret = load_package(name, pathname);

0 commit comments

Comments
 (0)