Skip to content

Commit 5697c4b

Browse files
Comment fixes extracted from patch by Demur Rumed.
1 parent 0db9016 commit 5697c4b

3 files changed

Lines changed: 104 additions & 108 deletions

File tree

Lib/importlib/_bootstrap_external.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ def _write_atomic(path, data, mode=0o666):
130130
# a .pyc file in text mode the magic number will be wrong; also, the
131131
# Apple MPW compiler swaps their values, botching string constants.
132132
#
133-
# The magic numbers must be spaced apart at least 2 values, as the
134-
# -U interpeter flag will cause MAGIC+1 being used. They have been
135-
# odd numbers for some time now.
136-
#
137133
# There were a variety of old schemes for setting the magic number.
138134
# The current working scheme is to increment the previous value by
139135
# 10.

Objects/abstract.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,7 +2132,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
21322132
"%s returned NULL without setting an error",
21332133
where);
21342134
#ifdef Py_DEBUG
2135-
/* Ensure that the bug is catched in debug mode */
2135+
/* Ensure that the bug is caught in debug mode */
21362136
Py_FatalError("a function returned NULL without setting an error");
21372137
#endif
21382138
return NULL;

0 commit comments

Comments
 (0)