]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-150524: Remove outdated note in binascii.a2b_hex() documentation (GH-150525...
authorJoshix-1 <joshix.dev@mailbox.org>
Sun, 31 May 2026 07:53:24 +0000 (09:53 +0200)
committerGitHub <noreply@github.com>
Sun, 31 May 2026 07:53:24 +0000 (10:53 +0300)
bytes.fromhex() accepts ASCII bytes and bytes-like objects as input since 3.14
(cherry picked from commit af10734907d2d7df4c4d754174804aec7c5d6a72)

Doc/library/binascii.rst

index 91b4333201646a2940f82e31f8f1619fe8e5c573..4cd390d27e44e65a2586b895a1041aa1966982cc 100644 (file)
@@ -158,9 +158,8 @@ The :mod:`!binascii` module defines the following functions:
    of hexadecimal digits (which can be upper or lower case), otherwise an
    :exc:`Error` exception is raised.
 
-   Similar functionality (accepting only text string arguments, but more
-   liberal towards whitespace) is also accessible using the
-   :meth:`bytes.fromhex` class method.
+   Similar functionality (but more liberal towards whitespace) is also accessible
+   using the :meth:`bytes.fromhex` class method.
 
 .. exception:: Error