diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-12 20:44:18 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-12 20:44:18 (GMT) |
commit | 651f9f77f3290a54e8934b331b40c3c868da850f (patch) | |
tree | be57441f83ea6ce1df95752c47f41850d973077a | |
parent | 3f36a5736b92457273d06cc17d55dd379381873d (diff) | |
download | cpython-651f9f77f3290a54e8934b331b40c3c868da850f.zip cpython-651f9f77f3290a54e8934b331b40c3c868da850f.tar.gz cpython-651f9f77f3290a54e8934b331b40c3c868da850f.tar.bz2 |
Issue #19515: Remove duplicated identifiers in zipimport.c
-rw-r--r-- | Modules/zipimport.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index dceca5e..8fe9195 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -14,6 +14,10 @@ struct st_zip_searchorder { int type; }; +#ifdef ALTSEP +_Py_IDENTIFIER(replace); +#endif + /* zip_searchorder defines how we search for a module in the Zip archive: we first search for a package __init__, then for non-package .pyc, .pyo and .py entries. The .pyc and .pyo entries @@ -66,9 +70,6 @@ zipimporter_init(ZipImporter *self, PyObject *args, PyObject *kwds) PyObject *path, *files, *tmp; PyObject *filename = NULL; Py_ssize_t len, flen; -#ifdef ALTSEP - _Py_IDENTIFIER(replace); -#endif if (!_PyArg_NoKeywords("zipimporter()", kwds)) return -1; @@ -559,9 +560,6 @@ zipimporter_get_data(PyObject *obj, PyObject *args) { ZipImporter *self = (ZipImporter *)obj; PyObject *path, *key; -#ifdef ALTSEP - _Py_IDENTIFIER(replace); -#endif PyObject *toc_entry; Py_ssize_t path_start, path_len, len; |