mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-08 01:36:41 +08:00
script: fix a stupid bug making same ratio for all frequent characters.
Argh! How did I miss this!
This commit is contained in:
parent
19737886fe
commit
adb158b058
@ -218,7 +218,7 @@ def process_text(content, lang):
|
||||
if unicode_value in characters:
|
||||
characters[unicode_value] += 1
|
||||
is_letter = True
|
||||
if lang.use_ascii and \
|
||||
elif lang.use_ascii and \
|
||||
((unicode_value >= 65 and unicode_value <= 90) or \
|
||||
(unicode_value >= 97 and unicode_value <= 122)):
|
||||
characters[unicode_value] = 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user