Skip to content

Commit

Permalink
Minor formatting tweak to universaldetector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard committed Apr 10, 2017
1 parent 77b8f0e commit 7ec7c4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chardet/universaldetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def feed(self, byte_str):

if not isinstance(byte_str, bytearray):
byte_str = bytearray(byte_str)

# First check for known BOMs, since these are guaranteed to be correct
if not self._got_data:
# If the data starts with BOM, we know it is UTF
Expand Down

0 comments on commit 7ec7c4b

Please sign in to comment.