Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue kurtmckee#318: test failures when cchardet is installed
feedparser imports cchardet or chardet depending on what's installed: https://github.com/kurtmckee/feedparser/blob/11990ea1d8791acc76c67781f1d2011daf0c3a99/feedparser/encodings.py#L37-L40 Although these libraries are mostly equivalent, they return slightly different encoding strings, even though both are correct and lead to succesful decoding. This change allows the tests to be run with either library by accepting both encoding names as correct. cchardet detects slightly different encodings from chardet,
- Loading branch information