We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a92dc9 commit fafa950Copy full SHA for fafa950
1 file changed
lib/matplotlib/backends/backend_pdf.py
@@ -2632,10 +2632,7 @@ def delta(self, other):
2632
different = ours is not theirs
2633
else:
2634
different = bool(ours != theirs)
2635
- except (ValueError, DeprecationWarning):
2636
- # numpy version < 1.25 raises DeprecationWarning when array shapes
2637
- # mismatch, unlike numpy >= 1.25 which raises ValueError.
2638
- # This should be removed when numpy < 1.25 is no longer supported.
+ except ValueError:
2639
ours = np.asarray(ours)
2640
theirs = np.asarray(theirs)
2641
different = (ours.shape != theirs.shape or
0 commit comments