]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27124: Fix documentation of exception raised by a2b_hex()
authorMartin Panter <vadmium+py@gmail.com>
Sun, 29 May 2016 00:48:54 +0000 (00:48 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sun, 29 May 2016 00:48:54 +0000 (00:48 +0000)
Doc/library/binascii.rst

index 259680f2206bd97098440c45c419795f8984629e..1752c639293852fa2dd9e1c90afaf2ed9b928d7b 100644 (file)
@@ -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