There was an error while loading. Please reload this page.
1 parent 8f358aa commit 53afa6dCopy full SHA for 53afa6d
1 file changed
Doc/tutorial/stdlib.rst
@@ -207,14 +207,14 @@ including: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:`zipfile` and
207
:mod:`tarfile`. ::
208
209
>>> import zlib
210
- >>> s = 'witch which has which witches wrist watch'
+ >>> s = b'witch which has which witches wrist watch'
211
>>> len(s)
212
41
213
>>> t = zlib.compress(s)
214
>>> len(t)
215
37
216
>>> zlib.decompress(t)
217
- 'witch which has which witches wrist watch'
+ b'witch which has which witches wrist watch'
218
>>> zlib.crc32(s)
219
226805979
220
0 commit comments