Skip to content

Commit

Permalink
📝 update utils.iana_name function to reflect his purpose
Browse files Browse the repository at this point in the history
address #572
  • Loading branch information
Ousret committed Dec 24, 2024
1 parent 0ebfccf commit 3582e62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charset_normalizer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def should_strip_sig_or_bom(iana_encoding: str) -> bool:


def iana_name(cp_name: str, strict: bool = True) -> str:
"""Returns the Python normalized encoding name (Not the IANA official name)."""
cp_name = cp_name.lower().replace("-", "_")

encoding_alias: str
Expand Down

0 comments on commit 3582e62

Please sign in to comment.