* filemodule.c: added writelines() -- analogous to readlines()

* import.c: fixed core dump when out-of-date .pyc file encountered (again!)
This commit is contained in:
Guido van Rossum 1993-10-25 09:59:04 +00:00
parent 52c1f51554
commit 5a2a683e72
2 changed files with 44 additions and 1 deletions

View file

@ -250,9 +250,10 @@ get_module(m, name, m_ret)
fprintf(stderr,
"# invalid precompiled file \"%s\"\n",
namebuf);
goto read_py;
}
}
if (co == NULL)
goto read_py;
}
else {
read_py: