Skip to content

Fix chardet import for compatibility with chardet >= 0.7.0 - #1215

Open
jellyfishing2346 wants to merge 1 commit into
capitalone:mainfrom
jellyfishing2346:fix/issue-1204
Open

Fix chardet import for compatibility with chardet >= 0.7.0#1215
jellyfishing2346 wants to merge 1 commit into
capitalone:mainfrom
jellyfishing2346:fix/issue-1204

Conversation

@jellyfishing2346

Copy link
Copy Markdown

Changed from 'from chardet.universaldetector import UniversalDetector' to 'from chardet import UniversalDetector' to support chardet 0.7.0+ which changed their import structure.

Fixes #1204

Changed from 'from chardet.universaldetector import UniversalDetector'
to 'from chardet import UniversalDetector' to support chardet 0.7.0+
which changed their import structure.

Fixes capitalone#1204
@jellyfishing2346
jellyfishing2346 requested a review from a team as a code owner July 31, 2026 03:29
@CLAassistant

CLAassistant commented Jul 31, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jellyfishing2346

Copy link
Copy Markdown
Author

Hi @leos, I was wondering if you happen to have any feedback on this PR.

@JGSweets

JGSweets commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

@jellyfishing2346 does this still support backwards compatibility?

If reqs don't require the new version then this could break older versions.

@jellyfishing2346

Copy link
Copy Markdown
Author

@JGSweets it doesn’t.

@JGSweets

JGSweets commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

@jellyfishing2346 do you know if they ever resolved this issue of changing the default likelihood:
#1205 (comment)

Also, unsure if they resolved their license issue for 7.0.0+

@jellyfishing2346

Copy link
Copy Markdown
Author

@JGSweets I don't believe I know if they did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] chardet newest version breaking change

3 participants