]> granicus.if.org Git - python/commit
Changed .getaliases() support to register the new aliases in the
authorMarc-André Lemburg <mal@egenix.com>
Tue, 12 Dec 2000 14:45:35 +0000 (14:45 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Tue, 12 Dec 2000 14:45:35 +0000 (14:45 +0000)
commit988ad2bdff836665f004c285fb09182c35775fd6
tree3ad1622183cc8b6f49e7e91794fb68b0ca4eef94
parent5fa0bd64a8cda3286c1c82f25c643391051a3f90
Changed .getaliases() support to register the new aliases in the
encodings package aliases mapping dictionary rather than in the
internal cache used by the search function.

This enables aliases to take advantage of the full normalization
process applied to encoding names which was previously not available.

The patch restricts alias registration to new aliases. Existing
aliases cannot be overridden anymore.
Lib/encodings/__init__.py