Kaydet (Commit) 2275e626 authored tarafından Martin Panter's avatar Martin Panter

Fix spelling errors in code comments

üst ce1a9f30
...@@ -270,5 +270,5 @@ class SuspiciousVisitor(nodes.GenericNodeVisitor): ...@@ -270,5 +270,5 @@ class SuspiciousVisitor(nodes.GenericNodeVisitor):
# ignore comments -- too much false positives. # ignore comments -- too much false positives.
# (although doing this could miss some errors; # (although doing this could miss some errors;
# there were two sections "commented-out" by mistake # 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 raise nodes.SkipNode
...@@ -2109,7 +2109,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where) ...@@ -2109,7 +2109,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
"%s returned NULL without setting an error", "%s returned NULL without setting an error",
where); where);
#ifdef Py_DEBUG #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"); Py_FatalError("a function returned NULL without setting an error");
#endif #endif
return NULL; return NULL;
...@@ -2132,7 +2132,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where) ...@@ -2132,7 +2132,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
where); where);
_PyErr_ChainExceptions(exc, val, tb); _PyErr_ChainExceptions(exc, val, tb);
#ifdef Py_DEBUG #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"); Py_FatalError("a function returned a result with an error set");
#endif #endif
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment