From 0d042a27fbcd0fcaa3a9a6b755bf7d09ded94e19 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 6 Dec 2024 11:48:36 +0100 Subject: [PATCH] examples: hello-python: Make it work with Python 3. * gettext-tools/examples/hello-python/hello.py.in: Add parenthese around print's arguments. --- gettext-tools/examples/hello-python/hello.py.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gettext-tools/examples/hello-python/hello.py.in b/gettext-tools/examples/hello-python/hello.py.in index fffe85563..39f9ed776 100644 --- a/gettext-tools/examples/hello-python/hello.py.in +++ b/gettext-tools/examples/hello-python/hello.py.in @@ -9,6 +9,6 @@ import os gettext.textdomain('hello-python') gettext.bindtextdomain('hello-python', '@localedir@') -print gettext.gettext("Hello, world!") -print gettext.gettext("This program is running as process number %(pid)d.") \ - % { 'pid': os.getpid() } +print(gettext.gettext("Hello, world!")) +print(gettext.gettext("This program is running as process number %(pid)d.") + % { 'pid': os.getpid() }) -- 2.47.3