Update version_branch.yml
This commit is contained in:
3
.github/workflows/version_branch.yml
vendored
3
.github/workflows/version_branch.yml
vendored
@@ -194,8 +194,7 @@ data = target.read_bytes()
|
||||
# Report line numbers without printing the raw characters.
|
||||
|
||||
def byte_to_line(blob: bytes, idx: int) -> int:
|
||||
return blob[:idx].count(b'
|
||||
') + 1
|
||||
return blob[:idx].count(b'\n') + 1
|
||||
|
||||
bad = []
|
||||
for i, b in enumerate(data):
|
||||
|
||||
Reference in New Issue
Block a user