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

Skip to content

Commit 53afa6d

Browse files
committed
Fix input type for zlib.
1 parent 8f358aa commit 53afa6d

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)