]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92417: `zlib` docs, `binascii` docs: remove Python 2 compatibility notes (GH-92543...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 May 2022 09:29:59 +0000 (02:29 -0700)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 09:29:59 +0000 (12:29 +0300)
(cherry picked from commit 7c638e64050778f2e0052ec9f84cd202b8aedfce)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/library/binascii.rst
Doc/library/zlib.rst

index 19efc2df9483db7b6f6591bc498e18ff9c4144a2..4417a5ac38251ea7f22ac633e6311c5a80384244 100644 (file)
@@ -121,8 +121,6 @@ The :mod:`binascii` module defines the following functions:
 
    .. versionchanged:: 3.0
       The result is always unsigned.
-      To generate the same numeric value when using Python 2 or earlier,
-      use ``crc32(data) & 0xffffffff``.
 
 .. function:: b2a_hex(data[, sep[, bytes_per_sep=1]])
               hexlify(data[, sep[, bytes_per_sep=1]])
index f0c67d5ae2584a6ddec559a555af07a76977a732..30eb99817a8590360021e994d524a3fc4314e8e4 100644 (file)
@@ -43,8 +43,6 @@ The available exception and functions in this module are:
 
    .. versionchanged:: 3.0
       The result is always unsigned.
-      To generate the same numeric value when using Python 2 or earlier,
-      use ``adler32(data) & 0xffffffff``.
 
 .. function:: compress(data, /, level=-1, wbits=MAX_WBITS)
 
@@ -137,8 +135,6 @@ The available exception and functions in this module are:
 
    .. versionchanged:: 3.0
       The result is always unsigned.
-      To generate the same numeric value when using Python 2 or earlier,
-      use ``crc32(data) & 0xffffffff``.
 
 .. function:: decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)