summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMikhail Efimov <efimov.mikhail@gmail.com>2024-10-08 12:18:28 (GMT)
committerGitHub <noreply@github.com>2024-10-08 12:18:28 (GMT)
commit9a35d053383c87d577ea09951bc9740704f4788d (patch)
tree4e83dd591247b57c273b8c78ee02d140a6dd7270 /Python
parent9047146e546599325cddda266e420f42fb318e4e (diff)
downloadcpython-9a35d053383c87d577ea09951bc9740704f4788d.zip
cpython-9a35d053383c87d577ea09951bc9740704f4788d.tar.gz
cpython-9a35d053383c87d577ea09951bc9740704f4788d.tar.bz2
gh-121404: typo fix in compile.c: MATADATA -> METADATA (#125101)
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 9826d3f..d463fcd 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1534,7 +1534,7 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *pflags,
_PyCompile_CodeUnitMetadata *umd = &c->u->u_metadata;
-#define SET_MATADATA_INT(key, value) do { \
+#define SET_METADATA_INT(key, value) do { \
PyObject *v = PyLong_FromLong((long)value); \
if (v == NULL) goto finally; \
int res = PyDict_SetItemString(metadata, key, v); \
@@ -1542,10 +1542,10 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *pflags,
if (res < 0) goto finally; \
} while (0);
- SET_MATADATA_INT("argcount", umd->u_argcount);
- SET_MATADATA_INT("posonlyargcount", umd->u_posonlyargcount);
- SET_MATADATA_INT("kwonlyargcount", umd->u_kwonlyargcount);
-#undef SET_MATADATA_INT
+ SET_METADATA_INT("argcount", umd->u_argcount);
+ SET_METADATA_INT("posonlyargcount", umd->u_posonlyargcount);
+ SET_METADATA_INT("kwonlyargcount", umd->u_kwonlyargcount);
+#undef SET_METADATA_INT
int addNone = mod->kind != Expression_kind;
if (_PyCodegen_AddReturnAtEnd(c, addNone) < 0) {