mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Issue #19515: Remove duplicated identifiers in zipimport.c
This commit is contained in:
parent
3f36a5736b
commit
651f9f77f3
1 changed files with 4 additions and 6 deletions
|
@ -14,6 +14,10 @@ struct st_zip_searchorder {
|
||||||
int type;
|
int type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef ALTSEP
|
||||||
|
_Py_IDENTIFIER(replace);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* zip_searchorder defines how we search for a module in the Zip
|
/* zip_searchorder defines how we search for a module in the Zip
|
||||||
archive: we first search for a package __init__, then for
|
archive: we first search for a package __init__, then for
|
||||||
non-package .pyc, .pyo and .py entries. The .pyc and .pyo entries
|
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 *path, *files, *tmp;
|
||||||
PyObject *filename = NULL;
|
PyObject *filename = NULL;
|
||||||
Py_ssize_t len, flen;
|
Py_ssize_t len, flen;
|
||||||
#ifdef ALTSEP
|
|
||||||
_Py_IDENTIFIER(replace);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!_PyArg_NoKeywords("zipimporter()", kwds))
|
if (!_PyArg_NoKeywords("zipimporter()", kwds))
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -559,9 +560,6 @@ zipimporter_get_data(PyObject *obj, PyObject *args)
|
||||||
{
|
{
|
||||||
ZipImporter *self = (ZipImporter *)obj;
|
ZipImporter *self = (ZipImporter *)obj;
|
||||||
PyObject *path, *key;
|
PyObject *path, *key;
|
||||||
#ifdef ALTSEP
|
|
||||||
_Py_IDENTIFIER(replace);
|
|
||||||
#endif
|
|
||||||
PyObject *toc_entry;
|
PyObject *toc_entry;
|
||||||
Py_ssize_t path_start, path_len, len;
|
Py_ssize_t path_start, path_len, len;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue