diff --git a/html5lib/_inputstream.py b/html5lib/_inputstream.py index a93b5a4e..10194d3f 100644 --- a/html5lib/_inputstream.py +++ b/html5lib/_inputstream.py @@ -483,7 +483,7 @@ def determineEncoding(self, chardet=True): # Guess with chardet, if available if chardet: try: - from chardet.universaldetector import UniversalDetector + from chardet import UniversalDetector except ImportError: pass else: