Remove the hash/number sign at the line-start (#1345)

Currently the helper remove the first character of each line, this can
lead to cases, where important characters are removed. For example if
the locale is already set up. (hash is already removed) in that case the
helper would remove the first character of the locale and lead to a
broken attempt to set the locale later on. This change should avoid that
and only remove the hash.

Co-authored-by: Fabian Bornschein <2440175-fabiscafe@users.noreply.gitlab.com>
This commit is contained in:
Fabian Bornschein 2022-08-01 09:42:58 +02:00 committed by GitHub
parent 9194f6d859
commit d2f58362c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def list_locales() -> List[str]:
entries.reverse()
for entry in entries:
text = entry[1:].strip()
text = entry.replace('#', '').strip()
if text == '':
break
locales.append(text)