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:
parent
2357e9d5e9
commit
a969b47f89
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user