Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/stdlib.rst @ 66554:b405a7f0aed7
Fix input type for zlib.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Tue, 30 Nov 2010 08:20:16 +0000 |
| parents | bf5f4174b8c2 |
| children | 3c9232a684ae 203945060baf |
line wrap: on
line diff
--- a/Doc/tutorial/stdlib.rst Tue Nov 30 07:43:28 2010 +0000 +++ b/Doc/tutorial/stdlib.rst Tue Nov 30 08:20:16 2010 +0000 @@ -207,14 +207,14 @@ :mod:`tarfile`. :: >>> import zlib - >>> s = 'witch which has which witches wrist watch' + >>> s = b'witch which has which witches wrist watch' >>> len(s) 41 >>> t = zlib.compress(s) >>> len(t) 37 >>> zlib.decompress(t) - 'witch which has which witches wrist watch' + b'witch which has which witches wrist watch' >>> zlib.crc32(s) 226805979
