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

Skip to content

Commit 201baee

Browse files
committed
Remove a couple of unused local variables (bug #445960, compiler warnings
on IRIX 6.5).
1 parent 7c0a93d commit 201baee

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Python/import.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,6 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen,
866866
{
867867
int i, npath;
868868
size_t len, namelen;
869-
struct _frozen *f;
870869
struct filedescr *fdp = NULL;
871870
FILE *fp = NULL;
872871
#ifndef RISCOS
@@ -903,7 +902,7 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen,
903902
strcpy(buf, name);
904903
return &fd_builtin;
905904
}
906-
if ((f = find_frozen(name)) != NULL) {
905+
if ((find_frozen(name)) != NULL) {
907906
strcpy(buf, name);
908907
return &fd_frozen;
909908
}
@@ -1388,9 +1387,8 @@ static int
13881387
init_builtin(char *name)
13891388
{
13901389
struct _inittab *p;
1391-
PyObject *mod;
13921390

1393-
if ((mod = _PyImport_FindExtension(name, name)) != NULL)
1391+
if (_PyImport_FindExtension(name, name) != NULL)
13941392
return 1;
13951393

13961394
for (p = PyImport_Inittab; p->name != NULL; p++) {

0 commit comments

Comments
 (0)