diff options
author | Guido van Rossum <guido@python.org> | 1993-10-25 09:59:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-10-25 09:59:04 (GMT) |
commit | 5a2a683e7299a8d8f03c7125c22eb813e3030808 (patch) | |
tree | ae452e022de04fa46ce145b7a66aecfbf18dcd0f /Python | |
parent | 52c1f515547a96898879fe60e2432b69ff95cca0 (diff) | |
download | cpython-5a2a683e7299a8d8f03c7125c22eb813e3030808.zip cpython-5a2a683e7299a8d8f03c7125c22eb813e3030808.tar.gz cpython-5a2a683e7299a8d8f03c7125c22eb813e3030808.tar.bz2 |
* filemodule.c: added writelines() -- analogous to readlines()
* import.c: fixed core dump when out-of-date .pyc file encountered (again!)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index c0f163a..b81a41e 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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: |