diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-05-29 00:48:54 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-05-29 00:48:54 (GMT) |
commit | 58dd7648dede087f1f3cbedd70cd095ba9f1a381 (patch) | |
tree | 6bbb22774a4109599308b12e96872cd60c6f04b3 | |
parent | 2c71e0bdcc83fd69220decc172b4a279c5c4147f (diff) | |
download | cpython-58dd7648dede087f1f3cbedd70cd095ba9f1a381.zip cpython-58dd7648dede087f1f3cbedd70cd095ba9f1a381.tar.gz cpython-58dd7648dede087f1f3cbedd70cd095ba9f1a381.tar.bz2 |
Issue #27124: Fix documentation of exception raised by a2b_hex()
-rw-r--r-- | Doc/library/binascii.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/binascii.rst b/Doc/library/binascii.rst index 259680f..1752c63 100644 --- a/Doc/library/binascii.rst +++ b/Doc/library/binascii.rst @@ -151,8 +151,8 @@ The :mod:`binascii` module defines the following functions: 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 |