summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-10-25 09:59:04 (GMT)
committerGuido van Rossum <guido@python.org>1993-10-25 09:59:04 (GMT)
commit5a2a683e7299a8d8f03c7125c22eb813e3030808 (patch)
treeae452e022de04fa46ce145b7a66aecfbf18dcd0f /Python/import.c
parent52c1f515547a96898879fe60e2432b69ff95cca0 (diff)
downloadcpython-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/import.c')
-rw-r--r--Python/import.c3
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: