]> granicus.if.org Git - python/commitdiff
Fix spelling errors in code comments
authorMartin Panter <vadmium+py@gmail.com>
Mon, 20 Jun 2016 07:52:50 +0000 (07:52 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Mon, 20 Jun 2016 07:52:50 +0000 (07:52 +0000)
Doc/tools/extensions/suspicious.py
Objects/abstract.c

index d3ed849157f041a1febab6b0710e454a84cc4645..0a70e57d2b044f09db57913c22c899ebb79197b1 100644 (file)
@@ -270,5 +270,5 @@ class SuspiciousVisitor(nodes.GenericNodeVisitor):
         # ignore comments -- too much false positives.
         # (although doing this could miss some errors;
         # there were two sections "commented-out" by mistake
-        # in the Python docs that would not be catched)
+        # in the Python docs that would not be caught)
         raise nodes.SkipNode
index a0362e74e404579a9250f4a6c5b31253a17822cd..585992d189e9272c4bdbf3134f86b864a9e4784a 100644 (file)
@@ -2109,7 +2109,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
                              "%s returned NULL without setting an error",
                              where);
 #ifdef Py_DEBUG
-            /* Ensure that the bug is catched in debug mode */
+            /* Ensure that the bug is caught in debug mode */
             Py_FatalError("a function returned NULL without setting an error");
 #endif
             return NULL;
@@ -2132,7 +2132,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
                              where);
             _PyErr_ChainExceptions(exc, val, tb);
 #ifdef Py_DEBUG
-            /* Ensure that the bug is catched in debug mode */
+            /* Ensure that the bug is caught in debug mode */
             Py_FatalError("a function returned a result with an error set");
 #endif
             return NULL;