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

Skip to content

Commit 5161bfa

Browse files
committed
New versions of (non) equality statements
1 parent 7773ede commit 5161bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ def format_eng(self, num):
961961
formatted = format_str % (mant, prefix)
962962

963963
formatted = formatted.strip()
964-
if (self.unit is not "") and (prefix is self.ENG_PREFIXES[0]):
964+
if (self.unit != "") and (prefix == self.ENG_PREFIXES[0]):
965965
formatted = formatted + " "
966966

967967
return formatted

0 commit comments

Comments
 (0)