Skip to content

Commit

Permalink
repr was wasteful (biopython#3178)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoon authored Jul 30, 2020
1 parent 6b8a4e4 commit edac1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bio/Seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __repr__(self):
# Shows the last three letters as it is often useful to see if
# there is a stop codon at the end of a sequence.
# Note total length is 54+3+3=60
return f"{self.__class__.__name__}('{str(self)[:54]}...{str(self)[-3:]}')"
return f"{self.__class__.__name__}('{str(self[:54])}...{str(self[-3:])}')"
else:
return f"{self.__class__.__name__}({self._data!r})"

Expand Down

0 comments on commit edac1a2

Please sign in to comment.