diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-18 11:01:52 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-18 11:01:52 (GMT) |
commit | 59f5dee3d66fcac58a21c4eb7bc1d1767d38ae6f (patch) | |
tree | 09bb9342669572836172efda2b33a33e79ac05f6 /Modules | |
parent | 467393dff5666b87eafe46660abf6ea0e2018c64 (diff) | |
download | cpython-59f5dee3d66fcac58a21c4eb7bc1d1767d38ae6f.zip cpython-59f5dee3d66fcac58a21c4eb7bc1d1767d38ae6f.tar.gz cpython-59f5dee3d66fcac58a21c4eb7bc1d1767d38ae6f.tar.bz2 |
Issue #13153: Tkinter functions now raise TclError instead of ValueError when
a string argument contains non-BMP character.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 23906de..c6a3e38 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -993,7 +993,7 @@ AsObj(PyObject *value) for (i = 0; i < size; i++) { if (inbuf[i] >= 0x10000) { /* Tcl doesn't do UTF-16, yet. */ - PyErr_Format(PyExc_ValueError, + PyErr_Format(Tkinter_TclError, "character U+%x is above the range " "(U+0000-U+FFFF) allowed by Tcl", inbuf[i]); |