Replaced is and is not

This commit is contained in:
sebastiankloth
2022-04-11 15:38:09 +02:00
parent 4fb80d9d44
commit f643edd405
3 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ def number_shorthand(x):
return True
elif isinstance(x, str):
limits = x.split('-')
if len(limits) is 2:
if len(limits) == 2:
try:
limits = [float(a) for a in limits]
except: