summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-18 11:01:52 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-18 11:01:52 (GMT)
commit59f5dee3d66fcac58a21c4eb7bc1d1767d38ae6f (patch)
tree09bb9342669572836172efda2b33a33e79ac05f6 /Modules
parent467393dff5666b87eafe46660abf6ea0e2018c64 (diff)
downloadcpython-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.c2
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]);