]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add missing INCREF in RAISE_EXCEPTION
authorGuido van Rossum <guido@python.org>
Fri, 20 Jan 1995 16:55:14 +0000 (16:55 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 20 Jan 1995 16:55:14 +0000 (16:55 +0000)
Python/ceval.c

index 08758ebe197539807e1bd9349792038cc48d92aa..c7fa69724186b5f482896df043e2f73b3de54d49 100644 (file)
@@ -782,6 +782,7 @@ eval_code(co, globals, locals, owner, arg)
                        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 @@ import_from(locals, v, name)
 {
        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);