]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Use Python 3 syntax in test fixtures
authorAarni Koskela <akx@iki.fi>
Wed, 1 Mar 2023 06:27:42 +0000 (08:27 +0200)
committerAarni Koskela <akx@iki.fi>
Wed, 1 Mar 2023 07:07:13 +0000 (09:07 +0200)
tests/messages/data/project/file1.py
tests/messages/data/project/file2.py
tests/messages/data/project/ignored/this_wont_normally_be_here.py

index 80ad00c66ccda610642b1f4c29f69de2c5b4d630..460d94152071a1e957da50ed7c870fef5d998def 100644 (file)
@@ -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'))
index 9991ea89ec72f2b58f1c827ba92d98a918ceb8a1..b6214932e487241f6de9be86f87a17b83e062646 100644 (file)
@@ -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))
index b96f5426074bf032769fa122b9117654ea9818e9..8ca49915764cda3060e0b929688d2fc42d77c991 100644 (file)
@@ -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))