diff Python/import.c @ 1362:560407ec632b legacy-trunk

* filemodule.c: added writelines() -- analogous to readlines() * import.c: fixed core dump when out-of-date .pyc file encountered (again!)
author Guido van Rossum <guido@python.org>
date Mon, 25 Oct 1993 09:59:04 +0000
parents 7cd533cf194a
children 315272ec4d5b
line wrap: on
line diff
--- a/Python/import.c	Mon Oct 25 08:40:52 1993 +0000
+++ b/Python/import.c	Mon Oct 25 09:59:04 1993 +0000
@@ -250,9 +250,10 @@
 				fprintf(stderr,
 				"# invalid precompiled file \"%s\"\n",
 					namebuf);
-				goto read_py;
 			}
 		}
+		if (co == NULL)
+			goto read_py;
 	}
 	else {
 read_py: