summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-18 11:39:05 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-18 11:39:05 (GMT)
commitc342fca2229c6e3badd2f1f3e4e053785ec1aea9 (patch)
treead6d01b07700f59aa008a9c16bf0802bfc48de53
parentf038b32d0bac407e43331b3a3f47a1a8e1d7fcb2 (diff)
downloadcpython-c342fca2229c6e3badd2f1f3e4e053785ec1aea9.zip
cpython-c342fca2229c6e3badd2f1f3e4e053785ec1aea9.tar.gz
cpython-c342fca2229c6e3badd2f1f3e4e053785ec1aea9.tar.bz2
zipimport: fix indentation
-rw-r--r--Modules/zipimport.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index efe6972..9596026 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -41,6 +41,7 @@ struct _zipimporter {
};
static PyObject *ZipImportError;
+/* read_directory() cache */
static PyObject *zip_directory_cache = NULL;
/* forward decls */
@@ -369,13 +370,13 @@ zipimporter_get_filename(PyObject *obj, PyObject *args)
if (!PyArg_ParseTuple(args, "s:zipimporter.get_filename",
&fullname))
- return NULL;
+ return NULL;
/* Deciding the filename requires working out where the code
would come from if the module was actually loaded */
code = get_module_code(self, fullname, &ispackage, &modpath);
if (code == NULL)
- return NULL;
+ return NULL;
Py_DECREF(code); /* Only need the path info */
return PyUnicode_FromString(modpath);
@@ -677,7 +678,7 @@ get_long(unsigned char *buf) {
A toc_entry is a tuple:
- (__file__, # value to use for __file__, available for all files
+ (__file__, # value to use for __file__, available for all files
compress, # compression kind; 0 for uncompressed
data_size, # size of compressed data on disk
file_size, # size of decompressed data
@@ -685,7 +686,7 @@ get_long(unsigned char *buf) {
time, # mod time of file (in dos format)
date, # mod data of file (in dos format)
crc, # crc checksum of the data
- )
+ )
Directories can be recognized by the trailing SEP in the name,
data_size and file_offset are 0.