Skip to content

Commit 9826939

Browse files
committed
WIP: _PyArg_UnpackKeywords is removed
1 parent 8d2f1a1 commit 9826939

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/JSArrayProxy.cc

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,15 +1168,6 @@ static bool sort_compare_default(JSContext *cx, unsigned argc, JS::Value *vp) {
11681168
return true;
11691169
}
11701170

1171-
// Python 3.13 moved this function to private API. Re-exporting it.
1172-
extern PyObject *const *_PyArg_UnpackKeywords(
1173-
PyObject *const *args, Py_ssize_t nargs,
1174-
PyObject *kwargs, PyObject *kwnames,
1175-
struct _PyArg_Parser *parser,
1176-
int minpos, int maxpos, int minkw,
1177-
PyObject **buf
1178-
);
1179-
11801171
PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_sort(JSArrayProxy *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) {
11811172
static const char *const _keywords[] = {"key", "reverse", NULL};
11821173
static _PyArg_Parser _parser = {
@@ -1190,7 +1181,9 @@ PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_sort(JSArrayProxy *self, P
11901181
PyObject *keyfunc = Py_None;
11911182
int reverse = 0;
11921183

1193-
args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 0, 0, argsbuf);
1184+
// args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 0, 0, argsbuf);
1185+
Py_RETURN_NONE;
1186+
11941187
if (!args) {
11951188
return NULL;
11961189
}

0 commit comments

Comments
 (0)