]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 86882 via svnmerge from
authorGeorg Brandl <georg@python.org>
Sat, 8 Jan 2011 09:18:55 +0000 (09:18 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 8 Jan 2011 09:18:55 +0000 (09:18 +0000)
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.
........

Doc/tutorial/stdlib.rst

index 4771d447b713b91d61e2d96f0bac9ae11027695f..b138f65a7e5c865a3d489d611214a5baacec353a 100644 (file)
@@ -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