You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This small patch fixes a typo in Lib/encodings/aliases.py, breaking an alias of the ptcp154 codec to cyrillic_asian
The alias is currently marked as 'cyrillic-asian', which isn't a valid normalized encoding name. The '-' should be normalized to '_' -- it should be 'cyrillic_asian'. Aliases are looked up from the aliases.py mapping by their noramlized name, described as:
defnormalize_encoding(encoding):
""" Normalize an encoding name.
Normalization works as follows: all non-alphanumeric
characters except the dot used for Python package names are
collapsed and replaced with a single underscore, e.g. ' -;#'
becomes '_'. Leading and trailing underscores are removed.
Note that encoding names should be ASCII only; if they do use
non-ASCII characters, these must be Latin-1 compatible.
"""
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: