Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard committed Jul 17, 2022
1 parent 99cd852 commit fa4c1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chardet/universaldetector.py
Expand Up @@ -329,7 +329,7 @@ def close(self) -> FinalResultDict:
# Rename legacy encodings with superset encodings if asked
if self.should_rename_legacy:
charset_name = self.LEGACY_MAP.get(
charset_name.lower(), charset_name
(charset_name or "").lower(), charset_name
)
self.result = {
"encoding": charset_name,
Expand Down

0 comments on commit fa4c1af

Please sign in to comment.