Skip to content

Commit 783934c

Browse files
authored
Fix DeprecationWarning: chardet.universaldetector is deprecated
1 parent fd4f032 commit 783934c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

html5lib/_inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def determineEncoding(self, chardet=True):
483483
# Guess with chardet, if available
484484
if chardet:
485485
try:
486-
from chardet.universaldetector import UniversalDetector
486+
from chardet import UniversalDetector
487487
except ImportError:
488488
pass
489489
else:

0 commit comments

Comments
 (0)