Fix off-by-one error in string formatting in Python

Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
Yuto Takano 2021-08-10 11:30:43 +01:00
parent 7828ca2ea4
commit 206b022ad0

View File

@ -138,7 +138,7 @@ class PatternMismatch(Problem): # pylint: disable=too-few-public-methods
def __str__(self):
if self.quiet:
return (
"{0}:{1}:{3}"
"{0}:{1}:{2}"
.format(self.match.filename, self.match.pos[0], self.match.name)
)