Skip to content

Commit 37fc61d

Browse files
Apply suggestions from code review
Co-authored-by: Mikhail Efimov <[email protected]>
1 parent eab653e commit 37fc61d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,7 @@ def test_set(self):
21632163
self.assertRaises(TypeError, _testcapi.pyset_add, s, [])
21642164

21652165
def test_frozenset(self):
2166-
# Test the PySet_Add c-api for fronzetset objects
2166+
# Test the PySet_Add c-api for frozenset objects
21672167
assert _testcapi.pyset_add(frozenset(), 1) == frozenset([1])
21682168
frozen_set = frozenset()
21692169
self.assertRaises(SystemError, _testcapi.pyset_add, frozen_set, 1)

Objects/setobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ make_new_set_basetype(PyTypeObject *type, PyObject *iterable)
11771177
void
11781178
_PyFrozenSet_MaybeUntrack(PyObject *op)
11791179
{
1180-
if ((op == NULL) || !(PyFrozenSet_CheckExact(op))) {
1180+
if (op == NULL || !PyFrozenSet_CheckExact(op)) {
11811181
return;
11821182
}
11831183
// if no elements of a frozenset are tracked, we untrack the object

0 commit comments

Comments
 (0)