diff Doc/tutorial/stdlib.rst @ 67460:90cba6a672f0 3.1

Merged revisions 86882 via svnmerge from svn+ssh://svn.python.org/python/branches/py3k ........ r86882 | georg.brandl | 2010-11-30 09:20:16 +0100 (Di, 30 Nov 2010) | 1 line Fix input type for zlib. ........
author Georg Brandl <georg@python.org>
date Sat, 08 Jan 2011 09:18:55 +0000
parents ad79f9b3a021
children 3c9232a684ae
line wrap: on
line diff
--- a/Doc/tutorial/stdlib.rst	Fri Jan 07 23:31:57 2011 +0000
+++ b/Doc/tutorial/stdlib.rst	Sat Jan 08 09:18:55 2011 +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