commit | 5a2a683e7299a8d8f03c7125c22eb813e3030808 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Oct 25 09:59:04 1993 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Oct 25 09:59:04 1993 +0000 |
tree | ae452e022de04fa46ce145b7a66aecfbf18dcd0f | |
parent | 52c1f515547a96898879fe60e2432b69ff95cca0 [diff] [blame] |
* filemodule.c: added writelines() -- analogous to readlines() * import.c: fixed core dump when out-of-date .pyc file encountered (again!)
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 @@ fprintf(stderr, "# invalid precompiled file \"%s\"\n", namebuf); - goto read_py; } } + if (co == NULL) + goto read_py; } else { read_py: