Skip to content

Commit 1f128f6

Browse files
mattaezellthiell
authored andcommitted
Clarify NodeSet docs on functions that do not return a NodeSet
1 parent 176b39d commit 1f128f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/ClusterShell/NodeSet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,14 +545,14 @@ def add(self, other):
545545

546546
def update(self, other):
547547
"""
548-
s.update(t) returns nodeset s with elements added from t.
548+
s.update(t) updates nodeset s with elements added from t.
549549
"""
550550
for pat, rangeset in other._patterns.items():
551551
self._add(pat, rangeset)
552552

553553
def updaten(self, others):
554554
"""
555-
s.updaten(list) returns nodeset s with elements added from given list.
555+
s.updaten(list) updates nodeset s with elements added from given list.
556556
"""
557557
for other in others:
558558
self.update(other)
@@ -592,7 +592,7 @@ def __and__(self, other):
592592

593593
def intersection_update(self, other):
594594
"""
595-
``s.intersection_update(t)`` returns nodeset s keeping only
595+
``s.intersection_update(t)`` updates nodeset s keeping only
596596
elements also found in t.
597597
"""
598598
if other is self:
@@ -712,7 +712,7 @@ def __xor__(self, other):
712712

713713
def symmetric_difference_update(self, other):
714714
"""
715-
``s.symmetric_difference_update(t)`` returns nodeset s keeping all
715+
``s.symmetric_difference_update(t)`` updates nodeset s keeping all
716716
nodes that are in exactly one of the nodesets.
717717
"""
718718
purge_patterns = []

0 commit comments

Comments
 (0)