mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
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.
This commit is contained in:
parent
0f868375ff
commit
4004e21484
1 changed files with 7 additions and 1 deletions
|
@ -255,7 +255,13 @@ Split (self, list)
|
|||
}
|
||||
|
||||
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 ("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue