summaryrefslogtreecommitdiff
path: root/doc/release/upcoming_changes/15255.compatibility.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/release/upcoming_changes/15255.compatibility.rst')
-rw-r--r--doc/release/upcoming_changes/15255.compatibility.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/15255.compatibility.rst b/doc/release/upcoming_changes/15255.compatibility.rst
new file mode 100644
index 000000000..e360eeeb3
--- /dev/null
+++ b/doc/release/upcoming_changes/15255.compatibility.rst
@@ -0,0 +1,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.