Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 20249:1acecc908ee8 legacy-trunk
Remove a couple of unused local variables (bug #445960, compiler warnings
on IRIX 6.5).
| author | Greg Ward <gward@python.net> |
|---|---|
| date | Thu, 04 Oct 2001 14:52:06 +0000 |
| parents | 1be18ef869a4 |
| children | 3d3b6b4cb79f |
line wrap: on
line diff
--- a/Python/import.c Thu Oct 04 14:49:46 2001 +0000 +++ b/Python/import.c Thu Oct 04 14:52:06 2001 +0000 @@ -866,7 +866,6 @@ { int i, npath; size_t len, namelen; - struct _frozen *f; struct filedescr *fdp = NULL; FILE *fp = NULL; #ifndef RISCOS @@ -903,7 +902,7 @@ strcpy(buf, name); return &fd_builtin; } - if ((f = find_frozen(name)) != NULL) { + if ((find_frozen(name)) != NULL) { strcpy(buf, name); return &fd_frozen; } @@ -1388,9 +1387,8 @@ init_builtin(char *name) { struct _inittab *p; - PyObject *mod; - if ((mod = _PyImport_FindExtension(name, name)) != NULL) + if (_PyImport_FindExtension(name, name) != NULL) return 1; for (p = PyImport_Inittab; p->name != NULL; p++) {
