diff options
author | Guido van Rossum <guido@python.org> | 2007-10-15 15:54:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-15 15:54:11 (GMT) |
commit | 9fc1b96a19ef821174f5ce37d007b68a55b9ba67 (patch) | |
tree | 0b7d7e3f145a07ff412897b46f83972a63c34094 /Parser | |
parent | ec5601945adc4fe16b8263305e825b216355a712 (diff) | |
download | cpython-9fc1b96a19ef821174f5ce37d007b68a55b9ba67.zip cpython-9fc1b96a19ef821174f5ce37d007b68a55b9ba67.tar.gz cpython-9fc1b96a19ef821174f5ce37d007b68a55b9ba67.tar.bz2 |
Change a PyErr_Print() into a PyErr_Clear(),
per discussion in issue 1031213.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 28fcf3c..4883f46 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; } |