diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-18 11:02:41 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-18 11:02:41 (GMT) |
commit | df4aa642a5d13ddd5646495fcefd2a92aaf07e74 (patch) | |
tree | 22d035f4a6ca816b6daa665b8225a6b6401cea17 /Modules | |
parent | 407aa2df2aa81180df611148fbfe7a7f57673a74 (diff) | |
parent | 59f5dee3d66fcac58a21c4eb7bc1d1767d38ae6f (diff) | |
download | cpython-df4aa642a5d13ddd5646495fcefd2a92aaf07e74.zip cpython-df4aa642a5d13ddd5646495fcefd2a92aaf07e74.tar.gz cpython-df4aa642a5d13ddd5646495fcefd2a92aaf07e74.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 70f4703..d18c7f0 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -990,7 +990,7 @@ AsObj(PyObject *value) #if TCL_UTF_MAX == 3 if (ch >= 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", ch); |