From 55cb0ea3e94071078739a9398901070f0c28031e Mon Sep 17 00:00:00 2001 From: William Moreno Reyes Date: Mon, 23 Oct 2017 14:33:25 -0600 Subject: [PATCH] Fix a py3 issue with print like a funtion Signed-off-by: William Moreno Reyes --- num2words/lang_EN_GB_old.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/num2words/lang_EN_GB_old.py b/num2words/lang_EN_GB_old.py index 34a86fc..a323bb8 100644 --- a/num2words/lang_EN_GB_old.py +++ b/num2words/lang_EN_GB_old.py @@ -14,7 +14,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301 USA -from __future__ import unicode_literals +from __future__ import unicode_literals, print_function from .lang_EN_GB import Num2Word_EN_GB class Num2Word_EN_GB_old(Num2Word_EN_GB): @@ -38,8 +38,8 @@ def main(): n2w.test(1325325436067876801768700107601001012212132143210473207540327057320957032975032975093275093275093270957329057320975093272950730) for val in [1,120,1000,1120,1800, 1976,2000,2010,2099,2171]: - print val, "is", n2w.to_currency(val) - print val, "is", n2w.to_year(val) + print (val, "is", n2w.to_currency(val)) + print (val, "is", n2w.to_year(val)) if __name__ == "__main__": main()