Skip to content

Commit 4f8fa37

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent 8132b98 commit 4f8fa37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3172,7 +3172,7 @@ dummy_func(
31723172
#ifdef Py_GIL_DISABLED
31733173
assert(_PyObject_IsUniquelyReferenced(iter_o));
31743174
assert(_Py_IsOwnedByCurrentThread((PyObject *)seq) ||
3175-
_PyObject_GC_IS_SHARED(seq));
3175+
_PyObject_GC_IS_SHARED(seq));
31763176
STAT_INC(FOR_ITER, hit);
31773177
int result = _PyList_GetItemRefNoLock(seq, it->it_index, &next);
31783178
// A negative result means we lost a race with another thread

Python/stackrefs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ _Py_stackref_close(_PyStackRef ref, const char *filename, int linenumber)
7272
PyObject *obj;
7373
if (ref.index <= LAST_PREDEFINED_STACKREF_INDEX) {
7474
if (ref.index == 0) {
75-
_Py_FatalErrorFormat(__func__, "Passing NULL to PyStackRef_CLOSE at %s:%d\n",filename, linenumber);
75+
_Py_FatalErrorFormat(__func__, "Passing NULL to PyStackRef_CLOSE at %s:%d\n", filename, linenumber);
7676
}
7777
// Pre-allocated reference to None, False or True -- Do not clear
7878
TableEntry *entry = _Py_hashtable_get(interp->open_stackrefs_table, (void *)ref.index);

0 commit comments

Comments
 (0)