Mercurial > cpython-lru_cache-weakref
diff Modules/_tkinter.c @ 4754:30703a656d13 legacy-trunk
Another fix for Split() -- don't refuse {"} but turn it into ".
This is needed because if a configure option has " as its value,
it will be rendered as {"}; after stripping one level of quoting it's
just ", on which splitlist will barf.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 17 Dec 1996 01:25:36 +0000 |
| parents | 7b1e784e20a0 |
| children | 3d32da37d627 |
line wrap: on
line diff
--- a/Modules/_tkinter.c Tue Dec 17 01:02:18 1996 +0000 +++ b/Modules/_tkinter.c Tue Dec 17 01:25:36 1996 +0000 @@ -255,7 +255,13 @@ } if (Tcl_SplitList (Tkapp_Interp (self), list, &argc, &argv) == TCL_ERROR) - return Tkinter_Error (self); + { + /* Not a list. + Could be a quoted string containing funnies, e.g. {"}. + Return the string itself. */ + PyErr_Clear(); + return PyString_FromString(list); + } if (argc == 0) v = PyString_FromString ("");
