8000 New versions of (non) equality statements · matplotlib/matplotlib@7724f09 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7724f09

Browse files
committed
New versions of (non) equality statements
1 parent cf20132 commit 7724f09

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
@@ -1114,7 +1114,7 @@ def format_eng(self, num):
11141114
formatted = format_str % (mant, prefix)
11151115

11161116
formatted = formatted.strip()
1117-
if (self.unit is not "") and (prefix is self.ENG_PREFIXES[0]):
1117+
if (self.unit != "") and (prefix == self.ENG_PREFIXES[0]):
11181118
formatted = formatted + " "
11191119

11201120
return formatted

0 commit comments

Comments
 (0)
0