Kaydet (Commit) 53afa6d2 authored tarafından Georg Brandl's avatar Georg Brandl

Fix input type for zlib.

üst 8f358aa7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment