Skip to content
Browse files

Changed "== None" to "is None"

  • Loading branch information...
1 parent 69dcec4 commit 88b3661d623234224f50b3a463cd5bd5a99c0f24 @oxling oxling committed Jul 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/matplotlib/backend_bases.py
View
4 lib/matplotlib/backend_bases.py
@@ -2014,7 +2014,7 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w',
self.figure.set_edgecolor(edgecolor)
bbox_inches = kwargs.pop("bbox_inches", None)
- if bbox_inches == None:
+ if bbox_inches is None:
bbox_inches = rcParams['savefig.bbox']
@@ -2058,7 +2058,7 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w',
bbox_inches = Bbox.union([bbox_inches, bbox_inches1])
pad = kwargs.pop("pad_inches", None)
- if pad == None:
+ if pad is None:
pad = rcParams['savefig.pad_inches']
bbox_inches = bbox_inches.padded(pad)

0 comments on commit 88b3661

Please sign in to comment.
Something went wrong with that request. Please try again.