diff options
author | Aarni Koskela <akx@iki.fi> | 2023-03-01 08:27:42 +0200 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2023-03-01 09:07:13 +0200 |
commit | 1dcb735dcfc030b0903f2379942e451491d66a51 (patch) | |
tree | c402679ead5a62e2a4961240f254b82631997756 /tests/messages/data/project | |
parent | 56071c90116e6b9ebbb62ac072bcf032fc6987cb (diff) | |
download | babel-1dcb735dcfc030b0903f2379942e451491d66a51.tar.gz |
Use Python 3 syntax in test fixtures
Diffstat (limited to 'tests/messages/data/project')
-rw-r--r-- | tests/messages/data/project/file1.py | 2 | ||||
-rw-r--r-- | tests/messages/data/project/file2.py | 2 | ||||
-rw-r--r-- | tests/messages/data/project/ignored/this_wont_normally_be_here.py | 2 |
3 files changed, 3 insertions, 3 deletions
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)) |