diff Python/import.c @ 497:2ce6a2a31886 legacy-trunk

Change RuntimeError into IOError when module file not found on reload.
author Guido van Rossum <guido@python.org>
date Mon, 16 Dec 1991 15:43:47 +0000
parents 77b80a91d357
children cbcdfda05bc4
line wrap: on
line diff
--- a/Python/import.c	Mon Dec 16 15:43:14 1991 +0000
+++ b/Python/import.c	Mon Dec 16 15:43:47 1991 +0000
@@ -152,7 +152,7 @@
 		if (m == NULL)
 			err_setstr(NameError, name);
 		else
-			err_setstr(RuntimeError, "no module source file");
+			err_setstr(IOError, "no module source file");
 		return NULL;
 	}
 	/* Get mtime -- always useful */