MNT: do not use 'is not' on literal
py38 raises a SyntaxWarning on this
This commit is contained in:
parent
4fe90bb215
commit
0649ff8f3c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user