Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d6fa47

Browse files
committed
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. ........
1 parent 875c213 commit 6d6fa47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/stdlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,14 @@ including: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:`zipfile` and
207207
:mod:`tarfile`. ::
208208

209209
>>> import zlib
210-
>>> s = 'witch which has which witches wrist watch'
210+
>>> s = b'witch which has which witches wrist watch'
211211
>>> len(s)
212212
41
213213
>>> t = zlib.compress(s)
214214
>>> len(t)
215215
37
216216
>>> zlib.decompress(t)
217-
'witch which has which witches wrist watch'
217+
b'witch which has which witches wrist watch'
218218
>>> zlib.crc32(s)
219219
226805979
220220

0 commit comments

Comments
 (0)