Skip to content

Commit

Permalink
Fix SyntaxWarning (#1874)
Browse files Browse the repository at this point in the history
```
SyntaxWarning: "is" with a literal. Did you mean "=="?
```
  • Loading branch information
sebastic committed Feb 25, 2020
1 parent 78e05b0 commit e855631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasterio/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def show_hist(source, bins=10, masked=True, title='Histogram', ax=None, **kwargs
# so we need the overall min/max to constrain the plot
rng = np.nanmin(arr), np.nanmax(arr)

if len(arr.shape) is 2:
if len(arr.shape) == 2:
arr = np.expand_dims(arr.flatten(), 0).T
colors = ['gold']
else:
Expand Down

0 comments on commit e855631

Please sign in to comment.