summaryrefslogtreecommitdiff
path: root/doc/release/upcoming_changes/15255.compatibility.rst
blob: e360eeeb3014aaa284efb2cb72fbf1f4670a48a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
``numpy.distutils.compat`` has been removed
-------------------------------------------
This module contained only the function ``get_exception()``, which was used as::

    try:
        ...
    except Exception:
        e = get_exception()

Its purpose was to handle the change in syntax introduced in Python 2.6, from
``except Exception, e:`` to ``except Exception as e:``, meaning it was only
necessary for codebases supporting Python 2.5 and older.