]> granicus.if.org Git - python/commitdiff
Backport revision 58471, replace PyErr_Print() with PyErr_Clear().
authorGuido van Rossum <guido@python.org>
Thu, 15 Nov 2007 20:39:53 +0000 (20:39 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 15 Nov 2007 20:39:53 +0000 (20:39 +0000)
Parser/tokenizer.c

index f6df9bb944919fcfbf521083615f362cd8ec92b0..f2c80eb63e5c0682d20cc0c774f925fdf6163ec1 100644 (file)
@@ -1542,7 +1542,7 @@ dec_utf8(const char *enc, const char *text, size_t len) {
                Py_DECREF(unicode_text);
        }
        if (!ret) {
-               PyErr_Print();
+               PyErr_Clear();
        }
        return ret;
 }