diff options
author | Guido van Rossum <guido@python.org> | 2007-05-02 19:09:54 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-02 19:09:54 +0000 |
commit | ef87d6ed94780fe00250a551031023aeb2898365 (patch) | |
tree | 1f8989aaaec7ec5f8b2f26498317f2022bf85531 /Lib/encodings/__init__.py | |
parent | 572dbf8f1320c0b34b9c786e5c30ba4a4b61b292 (diff) | |
download | cpython-git-ef87d6ed94780fe00250a551031023aeb2898365.tar.gz |
Rip out all the u"..." literals and calls to unicode().
Diffstat (limited to 'Lib/encodings/__init__.py')
-rw-r--r-- | Lib/encodings/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py index 383f3b0332..5bfee44980 100644 --- a/Lib/encodings/__init__.py +++ b/Lib/encodings/__init__.py @@ -60,7 +60,7 @@ def normalize_encoding(encoding): """ # Make sure we have an 8-bit string, because .translate() works # differently for Unicode strings. - if isinstance(encoding, unicode): + if isinstance(encoding, str): # Note that .encode('latin-1') does *not* use the codec # registry, so this call doesn't recurse. (See unicodeobject.c # PyUnicode_AsEncodedString() for details) |