From 2f5a0e3b41cd5ee460ad0af59b871b9f09b6e58f Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Mon, 27 May 2013 14:47:12 -0400 Subject: [PATCH] Modernize: <> --> != --- pynum2word/num2word_FR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pynum2word/num2word_FR.py b/pynum2word/num2word_FR.py index 6b9f9bf..5034543 100644 --- a/pynum2word/num2word_FR.py +++ b/pynum2word/num2word_FR.py @@ -60,12 +60,12 @@ class Num2Word_FR(Num2Word_EU): 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: