mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Revert "Backport METH_FASTCALL from Python 3.7 (#328)"
This reverts commit cf73bbd678
.
This commit is contained in:
parent
e7611a8476
commit
2ea1dc405c
102 changed files with 3299 additions and 2894 deletions
5
third_party/python/Objects/fileobject.c
vendored
5
third_party/python/Objects/fileobject.c
vendored
|
@ -364,7 +364,7 @@ PyFile_NewStdPrinter(int fd)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
stdprinter_write(PyStdPrinter_Object *self, PyObject **args, Py_ssize_t nargs)
|
||||
stdprinter_write(PyStdPrinter_Object *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||
{
|
||||
PyObject *unicode;
|
||||
PyObject *bytes = NULL;
|
||||
|
@ -383,6 +383,9 @@ stdprinter_write(PyStdPrinter_Object *self, PyObject **args, Py_ssize_t nargs)
|
|||
if (!_PyArg_UnpackStack(args, nargs, "write", 1, 1, &unicode))
|
||||
return NULL;
|
||||
|
||||
if(!_PyArg_NoStackKeywords("write", kwnames))
|
||||
return NULL;
|
||||
|
||||
/* encode Unicode to UTF-8 */
|
||||
str = PyUnicode_AsUTF8AndSize(unicode, &n);
|
||||
if (str == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue