MNT: do not use 'is not' on literal

py38 raises a SyntaxWarning on this
This commit is contained in:
Thomas A Caswell 2019-02-14 16:41:06 -05:00
parent 4fe90bb215
commit 0649ff8f3c
No known key found for this signature in database
GPG Key ID: BCD928050D713D75

View File

@ -186,7 +186,7 @@ class HistogramLUTItem(GraphicsWidget):
"""Return a lookup table from the color gradient defined by this """Return a lookup table from the color gradient defined by this
HistogramLUTItem. HistogramLUTItem.
""" """
if self.levelMode is not 'mono': if self.levelMode != 'mono':
return None return None
if n is None: if n is None:
if img.dtype == np.uint8: if img.dtype == np.uint8: