From: Aarni Koskela Date: Wed, 1 Mar 2023 06:27:42 +0000 (+0200) Subject: Use Python 3 syntax in test fixtures X-Git-Tag: v2.13.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dcb735dcfc030b0903f2379942e451491d66a51;p=thirdparty%2Fbabel.git Use Python 3 syntax in test fixtures --- diff --git a/tests/messages/data/project/file1.py b/tests/messages/data/project/file1.py index 80ad00c6..460d9415 100644 --- a/tests/messages/data/project/file1.py +++ b/tests/messages/data/project/file1.py @@ -5,4 +5,4 @@ from gettext import gettext as _ def foo(): # TRANSLATOR: This will be a translator coment, # that will include several lines - print _('bar') + print(_('bar')) diff --git a/tests/messages/data/project/file2.py b/tests/messages/data/project/file2.py index 9991ea89..b6214932 100644 --- a/tests/messages/data/project/file2.py +++ b/tests/messages/data/project/file2.py @@ -6,4 +6,4 @@ from gettext import ngettext def foo(): # Note: This will have the TRANSLATOR: tag but shouldn't # be included on the extracted stuff - print ngettext('foobar', 'foobars', 1) + print(ngettext('foobar', 'foobars', 1)) diff --git a/tests/messages/data/project/ignored/this_wont_normally_be_here.py b/tests/messages/data/project/ignored/this_wont_normally_be_here.py index b96f5426..8ca49915 100644 --- a/tests/messages/data/project/ignored/this_wont_normally_be_here.py +++ b/tests/messages/data/project/ignored/this_wont_normally_be_here.py @@ -8,4 +8,4 @@ from gettext import ngettext def foo(): # Note: This will have the TRANSLATOR: tag but shouldn't # be included on the extracted stuff - print ngettext('FooBar', 'FooBars', 1) + print(ngettext('FooBar', 'FooBars', 1))