diff --git a/src/dendropy/datamodel/treemodel/_tree.py b/src/dendropy/datamodel/treemodel/_tree.py index ef2a3066..986c1a3c 100644 --- a/src/dendropy/datamodel/treemodel/_tree.py +++ b/src/dendropy/datamodel/treemodel/_tree.py @@ -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)))