Skip to content

Commit 62afc76

Browse files
committed
whitespace
1 parent 08e22c3 commit 62afc76

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Lib/test/test_set.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,6 @@ def test_set(self):
21642164

21652165
def test_frozenset(self):
21662166
# Test the PySet_Add c-api for fronzetset objects
2167-
21682167
assert _testcapi.pyset_add(frozenset(), 1) == frozenset([1])
21692168
frozen_set = frozenset()
21702169
self.assertRaises(SystemError, _testcapi.pyset_add, frozen_set, 1)

Modules/_testcapimodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2437,7 +2437,7 @@ test_critical_sections(PyObject *module, PyObject *Py_UNUSED(args))
24372437

24382438

24392439
static PyObject *
2440-
// Interface to pyset_add, returning the set
2440+
// Interface to PySet_Add, returning the set
24412441
pyset_add(PyObject* self, PyObject* const* args, Py_ssize_t nargsf)
24422442
{
24432443
Py_ssize_t nargs = _PyVectorcall_NARGS(nargsf);

Objects/setobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ _PyFrozenSet_MaybeUntrack(PyObject *op)
11801180
if ((op == NULL) || !(PyFrozenSet_CheckExact(op))) {
11811181
return;
11821182
}
1183-
// if all elements of a frozenset are not tracked, we untrack the object
1183+
// if no elements of a frozenset are tracked, we untrack the object
11841184
Py_ssize_t pos = 0;
11851185
setentry *entry;
11861186
while (set_next((PySetObject *)op, &pos, &entry)) {

0 commit comments

Comments
 (0)