Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a35d05

Browse files
gh-121404: typo fix in compile.c: MATADATA -> METADATA (#125101)
1 parent 9047146 commit 9a35d05

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Python/compile.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,18 +1534,18 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *pflags,
15341534

15351535
_PyCompile_CodeUnitMetadata *umd = &c->u->u_metadata;
15361536

1537-
#define SET_MATADATA_INT(key, value) do { \
1537+
#define SET_METADATA_INT(key, value) do { \
15381538
PyObject *v = PyLong_FromLong((long)value); \
15391539
if (v == NULL) goto finally; \
15401540
int res = PyDict_SetItemString(metadata, key, v); \
15411541
Py_XDECREF(v); \
15421542
if (res < 0) goto finally; \
15431543
} while (0);
15441544

1545-
SET_MATADATA_INT("argcount", umd->u_argcount);
1546-
SET_MATADATA_INT("posonlyargcount", umd->u_posonlyargcount);
1547-
SET_MATADATA_INT("kwonlyargcount", umd->u_kwonlyargcount);
1548-
#undef SET_MATADATA_INT
1545+
SET_METADATA_INT("argcount", umd->u_argcount);
1546+
SET_METADATA_INT("posonlyargcount", umd->u_posonlyargcount);
1547+
SET_METADATA_INT("kwonlyargcount", umd->u_kwonlyargcount);
1548+
#undef SET_METADATA_INT
15491549

15501550
int addNone = mod->kind != Expression_kind;
15511551
if (_PyCodegen_AddReturnAtEnd(c, addNone) < 0) {

0 commit comments

Comments
 (0)