]> granicus.if.org Git - python/commitdiff
Change a PyErr_Print() into a PyErr_Clear(),
authorGuido van Rossum <guido@python.org>
Mon, 15 Oct 2007 15:54:11 +0000 (15:54 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Oct 2007 15:54:11 +0000 (15:54 +0000)
per discussion in issue 1031213.

Parser/tokenizer.c

index 28fcf3c7217185ab244749243c306d2f34754cda..4883f46a67ae0393676e52c0ad901b0936444135 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;
 }