1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-22 12:32:02 +00:00

WIP - self-code-review ... python

This commit is contained in:
grdddj 2024-01-03 11:36:42 +01:00
parent 2357e9d5e9
commit a969b47f89

View File

@ -43,6 +43,8 @@ def extract_strings(file_path: Path) -> list[str]:
continue
if any([substr in line for substr in in_line_continue]):
continue
if "//" in line:
line = line[: line.index("//")]
new = re.findall(r'"(.*?)"', line)
strings.extend(new)
return strings