Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88b3661

Browse files
committed
Changed "== None" to "is None"
1 parent 69dcec4 commit 88b3661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,7 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w',
20142014
self.figure.set_edgecolor(edgecolor)
20152015

20162016
bbox_inches = kwargs.pop("bbox_inches", None)
2017-
if bbox_inches == None:
2017+
if bbox_inches is None:
20182018
bbox_inches = rcParams['savefig.bbox']
20192019

20202020

@@ -2058,7 +2058,7 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w',
20582058
bbox_inches = Bbox.union([bbox_inches, bbox_inches1])
20592059

20602060
pad = kwargs.pop("pad_inches", None)
2061-
if pad == None:
2061+
if pad is None:
20622062
pad = rcParams['savefig.pad_inches']
20632063

20642064
bbox_inches = bbox_inches.padded(pad)

0 commit comments

Comments
 (0)