1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

l10n script: Fix comparison for picking up 'before' LANG comments

This commit is contained in:
Athanasius 2021-06-07 14:07:44 +01:00
parent a1abb46ff5
commit 1b3046a4f9

View File

@ -68,7 +68,7 @@ def extract_comments(call: ast.Call, lines: list[str], file: pathlib.Path) -> Op
above = call.lineno - 2
current = call.lineno - 1
above_line = lines[above].strip() if len(lines) < above else None
above_line = lines[above].strip() if len(lines) >= above else None
current_line = lines[current].strip()
for line in (above_line, current_line):