Skip to content

Commit ec90b28

Browse files
committed
Use is to compare with None in backend_pdf
1 parent bef47b4 commit ec90b28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/backends/backend_pdf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,10 @@ def delta(self, other):
22732273
ours = getattr(self, p)
22742274
theirs = getattr(other, p)
22752275
try:
2276-
different = bool(ours != theirs)
2276+
if (ours is None or theirs is None):
2277+
different = bool(not(ours is theirs))
2278+
else:
2279+
different = bool(ours != theirs)
22772280
except ValueError:
22782281
ours = np.asarray(ours)
22792282
theirs = np.asarray(theirs)

0 commit comments

Comments
 (0)