mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-13 15:10:06 +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
7439766ece
commit
872294d2a9
@ -217,7 +217,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