Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58dd764

Browse files
committed
Issue #27124: Fix documentation of exception raised by a2b_hex()
1 parent 2c71e0b commit 58dd764

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/binascii.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ The :mod:`binascii` module defines the following functions:
151151

152152
Return the binary data represented by the hexadecimal string *hexstr*. This
153153
function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even number
154-
of hexadecimal digits (which can be upper or lower case), otherwise a
155-
:exc:`TypeError` is raised.
154+
of hexadecimal digits (which can be upper or lower case), otherwise an
155+
:exc:`Error` exception is raised.
156156

157157

158158
.. exception:: Error

0 commit comments

Comments
 (0)