Mercurial > cpython-lru_cache-weakref
diff Lib/sqlite3/test/types.py @ 68142:be6c38d1817b
Normalize the encoding names for Latin-1 and UTF-8 to
'latin-1' and 'utf-8'.
These are optimized in the Python Unicode implementation
to result in more direct processing, bypassing the codec
registry.
Also see issue11303.
| author | Marc-André Lemburg <mal@egenix.com> |
|---|---|
| date | Fri, 25 Feb 2011 15:42:01 +0000 |
| parents | 9fe76c26ea9f |
| children | b39270c6b8d1 |
line wrap: on
line diff
--- a/Lib/sqlite3/test/types.py Fri Feb 25 15:23:18 2011 +0000 +++ b/Lib/sqlite3/test/types.py Fri Feb 25 15:42:01 2011 +0000 @@ -85,7 +85,7 @@ if isinstance(_val, bytes): # sqlite3 always calls __init__ with a bytes created from a # UTF-8 string when __conform__ was used to store the object. - _val = _val.decode('utf8') + _val = _val.decode('utf-8') self.val = _val def __cmp__(self, other):
