From: Georg Brandl Date: Tue, 30 Nov 2010 08:20:16 +0000 (+0000) Subject: Fix input type for zlib. X-Git-Tag: v3.2b1~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53afa6d239a48acbff0bfacdbce4ca3f2587ee3c;p=thirdparty%2FPython%2Fcpython.git Fix input type for zlib. --- diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst index 9d25dbd9b749..97297434ed83 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