Searched defs:chardet (Results 1 - 3 of 3) sorted by relevance

/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/tests/
H A Dtest_encoding.py39 stream = inputstream.HTMLBinaryInputStream(data, chardet=False)
60 import chardet # flake8: noqa namespace
62 print("charade/chardet not found, skipping chardet tests")
65 with open(os.path.join(test_dir, "encoding" , "chardet", "test_big5.txt"), "rb") as fp:
/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/
H A Ddammit.py27 # Debian package: python-chardet
28 # PyPI package: chardet
29 import chardet namespace
31 return chardet.detect(s)['encoding']
32 #import chardet.constants
33 #chardet.constants._debug = 1
35 # No chardet available.
208 3. An encoding detected through textual analysis by chardet,
/external/autotest/site_utils/rpm_control_system/
H A DBeautifulSoup.py20 * chardet, for auto-detecting character encodings
21 http://chardet.feedparser.org/
1736 # Download from http://chardet.feedparser.org/
1738 import chardet namespace
1739 # import chardet.constants
1740 # chardet.constants._debug = 1
1742 chardet = None variable in class:SimplifyingSOAPParser
1791 if not u and chardet and not isinstance(self.markup, unicode):
1792 u = self._convertFrom(chardet.detect(self.markup)['encoding'])

Completed in 181 milliseconds