From 1dcb735dcfc030b0903f2379942e451491d66a51 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 1 Mar 2023 08:27:42 +0200 Subject: Use Python 3 syntax in test fixtures --- tests/messages/data/project/file1.py | 2 +- tests/messages/data/project/file2.py | 2 +- tests/messages/data/project/ignored/this_wont_normally_be_here.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/messages/data/project/file1.py b/tests/messages/data/project/file1.py index 80ad00c..460d941 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 9991ea8..b621493 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 b96f542..8ca4991 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)) -- cgit v1.2.1