cpython (3.5): Issue #27124: Fix documentation of exception raised by a2b_hex()
https://hg.python.org/cpython/rev/ef89ecb6debc changeset: 101554:ef89ecb6debc branch: 3.5 parent: 101551:7aeb9505cc2a user: Martin Panter <vadmium+py@gmail.com> date: Sun May 29 00:48:54 2016 +0000 summary: Issue #27124: Fix documentation of exception raised by a2b_hex() files: Doc/library/binascii.rst | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/binascii.rst b/Doc/library/binascii.rst --- a/Doc/library/binascii.rst +++ b/Doc/library/binascii.rst @@ -151,8 +151,8 @@ Return the binary data represented by the hexadecimal string *hexstr*. This function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even number - of hexadecimal digits (which can be upper or lower case), otherwise a - :exc:`TypeError` is raised. + of hexadecimal digits (which can be upper or lower case), otherwise an + :exc:`Error` exception is raised. .. exception:: Error -- Repository URL: https://hg.python.org/cpython
participants (1)
-
martin.panter