Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bef47b4 + ec90b28 commit bf29166Copy full SHA for bf29166
1 file changed
lib/matplotlib/backends/backend_pdf.py
@@ -2273,7 +2273,10 @@ def delta(self, other):
2273
ours = getattr(self, p)
2274
theirs = getattr(other, p)
2275
try:
2276
- different = bool(ours != theirs)
+ if (ours is None or theirs is None):
2277
+ different = bool(not(ours is theirs))
2278
+ else:
2279
+ different = bool(ours != theirs)
2280
except ValueError:
2281
ours = np.asarray(ours)
2282
theirs = np.asarray(theirs)
0 commit comments