From: Guido van Rossum Date: Mon, 15 Oct 2007 15:54:11 +0000 (+0000) Subject: Change a PyErr_Print() into a PyErr_Clear(), X-Git-Tag: v2.6a1~1183 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fc1b96a19ef821174f5ce37d007b68a55b9ba67;p=python Change a PyErr_Print() into a PyErr_Clear(), per discussion in issue 1031213. --- diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 28fcf3c721..4883f46a67 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -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; }