diff options
author | Guido van Rossum <guido@python.org> | 2007-10-08 02:46:15 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-08 02:46:15 +0000 |
commit | bae07c9baf3e53164de6f85a18ce747a76b9ffde (patch) | |
tree | e0bf84063848730026bea64461fe3920dbe8ecb8 /Lib/test/test_unicode.py | |
parent | 85c1ba5d742779eec3148377ce6d8d359d318263 (diff) | |
download | cpython-bae07c9baf3e53164de6f85a18ce747a76b9ffde.tar.gz cpython-bae07c9baf3e53164de6f85a18ce747a76b9ffde.zip |
Breaking ground for PEP 3137 implementation:
Get rid of buffer(). Use memoryview() in its place where possible.
In a few places, do things a bit different, because memoryview()
can't slice (yet).
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 1358419407f..d33643a7208 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -713,7 +713,7 @@ class UnicodeTest( if not sys.platform.startswith('java'): self.assertEqual( str( - buffer(b'character buffers are decoded to unicode'), + memoryview(b'character buffers are decoded to unicode'), 'utf-8', 'strict' ), |