Skip to content

Commit

Permalink
Modernize: <> --> !=
Browse files Browse the repository at this point in the history
  • Loading branch information
Virgil Dupras committed May 27, 2013
1 parent 4a18346 commit 2f5a0e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynum2word/num2word_FR.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ def merge(self, curr, next):
else:
if (not (cnum - 80)%100 or not cnum%100) and ctext[-1] == "s":
ctext = ctext[:-1]
if (cnum<1000 and nnum <> 1000 and ntext[-1] <> "s"
if (cnum<1000 and nnum != 1000 and ntext[-1] != "s"
and not nnum%100):
ntext += "s"

if nnum < cnum < 100:
if nnum % 10 == 1 and cnum <> 80:
if nnum % 10 == 1 and cnum != 80:
return ("%s et %s"%(ctext, ntext), cnum + nnum)
return ("%s-%s"%(ctext, ntext), cnum + nnum)
elif nnum > cnum:
Expand Down

0 comments on commit 2f5a0e3

Please sign in to comment.