]> granicus.if.org Git - python/commit
Change normalize_encodings() to avoid using .translate() or depending on
authorGuido van Rossum <guido@python.org>
Thu, 7 Jun 2007 21:43:46 +0000 (21:43 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 7 Jun 2007 21:43:46 +0000 (21:43 +0000)
commitad5b9de288de6b5f965fdfd4db30753c30f9d5ca
tree91155dd70100bd8d866374735fc466ba3c06ed9d
parentc3b6ac796f160ed27d2d1094ef606514ac3ae898
Change normalize_encodings() to avoid using .translate() or depending on
the string type.  It will always return a Unicode string.  The algoritm's
specification is unchanged.
Lib/encodings/__init__.py