From f5da6e57a9805a648126ba7535a1f1a25f0ebb8d Mon Sep 17 00:00:00 2001 From: Marius Grigaitis Date: Tue, 31 May 2011 16:31:06 +0300 Subject: [PATCH] Don't know why but this fixes endless recursion --- num2word_EN.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/num2word_EN.py b/num2word_EN.py index 9470091..ce0f151 100644 --- a/num2word_EN.py +++ b/num2word_EN.py @@ -71,7 +71,7 @@ class Num2Word_EN(num2word_EU.Num2Word_EU): def merge(self, (ltext, lnum), (rtext, rnum)): if lnum == 1 and rnum < 100: - return next + return (rtext, rnum + lnum) elif 100 > lnum > rnum : return ("%s-%s"%(ltext, rtext), lnum + rnum) elif lnum >= 100 > rnum: