Skip to content

Commit

Permalink
Fix another SyntaxWarning where 'is' is used rather than '==' (#127)
Browse files Browse the repository at this point in the history
Merging: repeat occurrence of PR #112 discovered post-release.
  • Loading branch information
PureTryOut authored Aug 21, 2020
1 parent 6d21002 commit 481535b
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 481535b

Please sign in to comment.