diff options
author | Christian Clauss <cclauss@me.com> | 2021-10-07 17:30:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 17:30:08 +0200 |
commit | ccd82a080056f21da2041d4c5d0ac4421ad0c8a8 (patch) | |
tree | f2eafb028e085e2d7d62cc51c5ac2ae7d513e21c /Python/compile.c | |
parent | 212140dceb72d40ba19e4aef089c707dbbcfd5cb (diff) | |
download | cpython-git-ccd82a080056f21da2041d4c5d0ac4421ad0c8a8.tar.gz |
[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)
(cherry picked from commit db693df3e112c5a61f2cbef63eedce3a36520ded)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index 97aa2247f6..90861038e0 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -6157,7 +6157,7 @@ compiler_pattern_or(struct compiler *c, pattern_ty p, pattern_context *pc) // cases, though. assert(istores < icontrol); Py_ssize_t rotations = istores + 1; - // Perfom the same rotation on pc->stores: + // Perform the same rotation on pc->stores: PyObject *rotated = PyList_GetSlice(pc->stores, 0, rotations); if (rotated == NULL || @@ -6785,7 +6785,7 @@ consts_dict_keys_inorder(PyObject *dict) return NULL; while (PyDict_Next(dict, &pos, &k, &v)) { i = PyLong_AS_LONG(v); - /* The keys of the dictionary can be tuples wrapping a contant. + /* The keys of the dictionary can be tuples wrapping a constant. * (see compiler_add_o and _PyCode_ConstantKey). In that case * the object we want is always second. */ if (PyTuple_CheckExact(k)) { |