Skip to content

Commit

Permalink
Fix indentation error in sbcharsetprober
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard committed Apr 10, 2017
1 parent 110b05c commit 1e048ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chardet/sbcharsetprober.py
Expand Up @@ -99,12 +99,12 @@ def feed(self, byte_str):
language_model = self._model.language_model
for char in byte_str:
order = char_to_order_map.get(char, CharacterCategory.UNDEFINED)
# XXX: This was SYMBOL_CAT_ORDER before, with a value of 250, but
# CharacterCategory.SYMBOL is actually 253, so we use CONTROL
# to make it closer to the original intent. The only difference
# is whether or not we count digits and control characters for
# _total_char purposes.
if order < CharacterCategory.CONTROL:
# XXX: This was SYMBOL_CAT_ORDER before, with a value of 250, but
# CharacterCategory.SYMBOL is actually 253, so we use CONTROL
# to make it closer to the original intent. The only difference
# is whether or not we count digits and control characters for
# _total_char purposes.
if order < CharacterCategory.CONTROL:
self._total_char += 1
# TODO: Follow uchardet's lead and discount confidence for frequent
# control characters.
Expand Down

0 comments on commit 1e048ab

Please sign in to comment.