Fix off-by-one error in string formatting in Python
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
parent
7828ca2ea4
commit
206b022ad0
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class PatternMismatch(Problem): # pylint: disable=too-few-public-methods
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if self.quiet:
|
if self.quiet:
|
||||||
return (
|
return (
|
||||||
"{0}:{1}:{3}"
|
"{0}:{1}:{2}"
|
||||||
.format(self.match.filename, self.match.pos[0], self.match.name)
|
.format(self.match.filename, self.match.pos[0], self.match.name)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue