mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Merge heads
This commit is contained in:
commit
1eb87629cd
2 changed files with 4 additions and 4 deletions
|
@ -12,6 +12,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call
|
||||||
|
returned empty string.
|
||||||
|
|
||||||
- Issue #19037: The mailbox module now makes all changes to maildir files
|
- Issue #19037: The mailbox module now makes all changes to maildir files
|
||||||
before moving them into place, to avoid race conditions with other programs
|
before moving them into place, to avoid race conditions with other programs
|
||||||
that may be accessing the maildir directory.
|
that may be accessing the maildir directory.
|
||||||
|
|
|
@ -1107,10 +1107,7 @@ Tkapp_CallResult(TkappObject *self)
|
||||||
res = FromObj((PyObject*)self, value);
|
res = FromObj((PyObject*)self, value);
|
||||||
Tcl_DecrRefCount(value);
|
Tcl_DecrRefCount(value);
|
||||||
} else {
|
} else {
|
||||||
const char *s = Tcl_GetStringResult(self->interp);
|
res = PyUnicode_FromString(Tcl_GetStringResult(self->interp));
|
||||||
const char *p = s;
|
|
||||||
|
|
||||||
res = PyUnicode_FromStringAndSize(s, (int)(p-s));
|
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue