From edac1a22f12328fba8a6b7f4068bbb3eb034f80f Mon Sep 17 00:00:00 2001 From: mdehoon Date: Thu, 30 Jul 2020 18:00:20 +0900 Subject: [PATCH] repr was wasteful (#3178) --- Bio/Seq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bio/Seq.py b/Bio/Seq.py index 7c5fe58b223..c841e69e327 100644 --- a/Bio/Seq.py +++ b/Bio/Seq.py @@ -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})"