]> granicus.if.org Git - python/commitdiff
Fix typos in compile.c comments (GH-12752)
authorSimeon <simeonkr@users.noreply.github.com>
Tue, 9 Apr 2019 23:36:57 +0000 (19:36 -0400)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 9 Apr 2019 23:36:57 +0000 (16:36 -0700)
Python/compile.c

index a992e4b4653cc18cd710847bfcdbf0435f8c4925..ecf7d357c856459f60bde9b73b4320f146e63525 100644 (file)
@@ -1216,7 +1216,7 @@ merge_consts_recursive(struct compiler *c, PyObject *o)
     }
 
     // We registered o in c_const_cache.
-    // When o is a tuple or frozenset, we want to merge it's
+    // When o is a tuple or frozenset, we want to merge its
     // items too.
     if (PyTuple_CheckExact(o)) {
         Py_ssize_t len = PyTuple_GET_SIZE(o);
@@ -1246,7 +1246,7 @@ merge_consts_recursive(struct compiler *c, PyObject *o)
         }
     }
     else if (PyFrozenSet_CheckExact(o)) {
-        // *key* is tuple. And it's first item is frozenset of
+        // *key* is tuple. And its first item is frozenset of
         // constant keys.
         // See _PyCode_ConstantKey() for detail.
         assert(PyTuple_CheckExact(key));