Skip to content

Commit

Permalink
Fix another SyntaxWarning where 'is' is used rather than '==' (Mycrof…
Browse files Browse the repository at this point in the history
…tAI#127)

Merging: repeat occurrence of PR MycroftAI#112 discovered post-release.
  • Loading branch information
PureTryOut authored and ChanceNCounter committed Dec 3, 2020
1 parent 6552f09 commit bf5cc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lingua_franca/lang/format_cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def _long_scale(n):
return pronounce_number_cs(num, places, short_scale, scientific=True)
# Deal with fractional part
elif not num == int(num) and places > 0:
if abs(num) < 1.0 and (result is "mínus " or not result):
if abs(num) < 1.0 and (result == "mínus " or not result):
result += "nula"
result += " tečka"
_num_str = str(num)
Expand Down

0 comments on commit bf5cc38

Please sign in to comment.