diff Python/ceval.c @ 2201:8f1daffe799b legacy-trunk

add missing INCREF in RAISE_EXCEPTION
author Guido van Rossum <guido@python.org>
date Fri, 20 Jan 1995 16:55:14 +0000
parents 5fd8524dd03a
children 283a8eb2e317
line wrap: on
line diff
--- a/Python/ceval.c	Fri Jan 20 16:54:36 1995 +0000
+++ b/Python/ceval.c	Fri Jan 20 16:55:14 1995 +0000
@@ -782,6 +782,7 @@
 			while (is_tupleobject(w) && gettuplesize(w) > 0) {
 				u = w;
 				w = gettupleitem(u, 0);
+				INCREF(w);
 				DECREF(u);
 			}
 			if (!is_stringobject(w))
@@ -2494,7 +2495,7 @@
 {
 	object *w, *x;
 	if (!is_moduleobject(v)) {
-		err_setstr(TypeError, "import-from require module object");
+		err_setstr(TypeError, "import-from requires module object");
 		return -1;
 	}
 	w = getmoduledict(v);