This commit is contained in:
Jonathan Lin 2022-03-30 08:26:05 -04:00
Родитель 95edea7e71
Коммит 3b2b258554
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -144,7 +144,7 @@ def mobileconfig_install(mobileconfig):
# checks given hash summary page for the line that matches given locale and returns hash
def autohash_firefox_find_hash(hash_summary, locale):
for line in hash_summary.split(b'\n'):
if locale in line:
if locale.decode() in line.decode():
linesplit = line.split()
# In 79.0 hashes are encoded in b'' form.
# easiest way to interpret is to split it 2nd char to 66th char, since the text is