Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
jordibc committed Jan 19, 2024
1 parent be5e255 commit bb3b954
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ete4/core/tree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ cdef class Tree(object):
self._collapsed_faces = value

def __bool__(self):
# If this is not defined, bool(t) will call len(t).
# If this is not defined, bool(t) will call len(t) (terribly slow!).
return True

def __repr__(self):
Expand Down Expand Up @@ -457,16 +457,12 @@ cdef class Tree(object):
return self.up.add_child(child=sister, name=name, dist=dist)

def remove_sister(self, sister=None):
"""Remove a sister node.
"""Remove a sister node and return it.
It has the same effect as self.up.remove_child(sister).
If a sister node is not supplied, the first sister will be deleted
and returned.
It has the same effect as self.up.remove_child(sister). If a sister
node is not supplied, the first sister will be deleted.
:param sister: A node instance to be removed as a sister.
:return: The node removed.
"""
sisters = self.get_sisters()
if not sisters:
Expand Down

0 comments on commit bb3b954

Please sign in to comment.