mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
test/py: fix off-by-one error in spawn matching code
A regex match object's .end() value is already the index after the match, not the index of the last character in the match, so there's no need to add 1 to point past the match. Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
83357fd5c2
commit
d8926811fd
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ class Spawn(object):
|
|||
earliest_pi = pi
|
||||
if earliest_m:
|
||||
pos = earliest_m.start()
|
||||
posafter = earliest_m.end() + 1
|
||||
posafter = earliest_m.end()
|
||||
self.before = self.buf[:pos]
|
||||
self.after = self.buf[pos:posafter]
|
||||
self.buf = self.buf[posafter:]
|
||||
|
|
Loading…
Add table
Reference in a new issue