Skip to content

Commit

Permalink
Use full Newick formatter for __str__
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed May 18, 2024
1 parent c29bd5d commit 78c17ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dendropy/datamodel/treemodel/_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -3949,7 +3949,7 @@ def strip_comments(self):

def __str__(self):
"Dump Newick string."
return "%s" % self._as_newick_string()
return self.as_string("newick").strip()

def __repr__(self):
return "<{} object at {}>".format(self.__class__.__name__, hex(id(self)))
Expand Down

0 comments on commit 78c17ac

Please sign in to comment.