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

Skip to content

Commit c342fca

Browse files
author
Victor Stinner
committed
zipimport: fix indentation
1 parent f038b32 commit c342fca

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Modules/zipimport.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ struct _zipimporter {
4141
};
4242

4343
static PyObject *ZipImportError;
44+
/* read_directory() cache */
4445
static PyObject *zip_directory_cache = NULL;
4546

4647
/* forward decls */
@@ -369,13 +370,13 @@ zipimporter_get_filename(PyObject *obj, PyObject *args)
369370

370371
if (!PyArg_ParseTuple(args, "s:zipimporter.get_filename",
371372
&fullname))
372-
return NULL;
373+
return NULL;
373374

374375
/* Deciding the filename requires working out where the code
375376
would come from if the module was actually loaded */
376377
code = get_module_code(self, fullname, &ispackage, &modpath);
377378
if (code == NULL)
378-
return NULL;
379+
return NULL;
379380
Py_DECREF(code); /* Only need the path info */
380381

381382
return PyUnicode_FromString(modpath);
@@ -677,15 +678,15 @@ get_long(unsigned char *buf) {
677678
678679
A toc_entry is a tuple:
679680
680-
(__file__, # value to use for __file__, available for all files
681+
(__file__, # value to use for __file__, available for all files
681682
compress, # compression kind; 0 for uncompressed
682683
data_size, # size of compressed data on disk
683684
file_size, # size of decompressed data
684685
file_offset, # offset of file header from start of archive
685686
time, # mod time of file (in dos format)
686687
date, # mod data of file (in dos format)
687688
crc, # crc checksum of the data
688-
)
689+
)
689690
690691
Directories can be recognized by the trailing SEP in the name,
691692
data_size and file_offset are 0.

0 commit comments

Comments
 (0)