From e15fab42988c6fa518ca6778cf4049d8e42ba977 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 15 Nov 2007 20:39:53 +0000 Subject: [PATCH] Backport revision 58471, replace PyErr_Print() with PyErr_Clear(). --- Parser/tokenizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index f6df9bb9449..f2c80eb63e5 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; }