Skip to content

Commit cb07b4d

Browse files
committed
Use PyTuple_Pack from public API
1 parent 429aa1f commit cb07b4d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Parser/tokenizer/helpers.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include "errcode.h"
33
#include "pycore_runtime.h" // _Py_ID()
44
#include "pycore_token.h"
5-
#include "pycore_tuple.h" // _PyTuple_FromPair
65

76
#include "../lexer/state.h"
87

@@ -183,7 +182,7 @@ _PyTokenizer_raise_init_error(PyObject *filename)
183182
goto error;
184183
}
185184

186-
tuple = _PyTuple_FromPair(errstr, tmp);
185+
tuple = PyTuple_Pack(2, errstr, tmp);
187186
Py_DECREF(tmp);
188187
if (!tuple) {
189188
goto error;

0 commit comments

Comments
 (0)