diff options
author | Georg Brandl <georg@python.org> | 2010-11-30 08:20:16 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-11-30 08:20:16 (GMT) |
commit | 53afa6d239a48acbff0bfacdbce4ca3f2587ee3c (patch) | |
tree | ae443e1a0d4572918f9a29e6e3a7c6e0fa6236bb /Doc | |
parent | 8f358aa7581d89a81d53a99483956b2324d643f2 (diff) | |
download | cpython-53afa6d239a48acbff0bfacdbce4ca3f2587ee3c.zip cpython-53afa6d239a48acbff0bfacdbce4ca3f2587ee3c.tar.gz cpython-53afa6d239a48acbff0bfacdbce4ca3f2587ee3c.tar.bz2 |
Fix input type for zlib.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/stdlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst index 9d25dbd..9729743 100644 --- a/Doc/tutorial/stdlib.rst +++ b/Doc/tutorial/stdlib.rst @@ -207,14 +207,14 @@ including: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:`zipfile` and :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 |