mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-28 03:32:23 +03:00
l10n script: remove extraneous "and not out" from conditionals
Left over from when trying to fix the old loop.
This commit is contained in:
1 parent
5dee9d2cff
commit
e584c13e8d
1 file changed
+2
-2
@@ -88,7 +88,7 @@ def extract_comments(call: ast.Call, lines: list[str], file: pathlib.Path) -> Op
|
||||
match = COMMENT_OWN_LINE_RE.match(above_line)
|
||||
if match:
|
||||
above_comment = match.group(1).strip()
|
||||
if not above_comment.startswith('# LANG:') and not out:
|
||||
if not above_comment.startswith('# LANG:'):
|
||||
bad_comment = f'Unknown comment for {file}:{call.lineno} {above_line}'
|
||||
above_comment = None
|
||||
|
||||
@@ -99,7 +99,7 @@ def extract_comments(call: ast.Call, lines: list[str], file: pathlib.Path) -> Op
|
||||
match = COMMENT_SAME_LINE_RE.match(current_line)
|
||||
if match:
|
||||
current_comment = match.group(1).strip()
|
||||
if not current_comment.startswith('# LANG:') and not out:
|
||||
if not current_comment.startswith('# LANG:'):
|
||||
bad_comment = f'Unknown comment for {file}:{call.lineno} {current_line}'
|
||||
current_comment = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user