]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix old-style `print` statement in `gettext` comments (#122939)
authorsobolevn <mail@sobolevn.me>
Mon, 12 Aug 2024 15:15:57 +0000 (18:15 +0300)
committerGitHub <noreply@github.com>
Mon, 12 Aug 2024 15:15:57 +0000 (18:15 +0300)
Lib/gettext.py

index 62cff81b7b3d496f798222ec1ca64cbb9c9a2273..a0d81cf846a05c2bd1ec9e4d0b110d27c7785392 100644 (file)
@@ -648,7 +648,7 @@ def npgettext(context, msgid1, msgid2, n):
 #    import gettext
 #    cat = gettext.Catalog(PACKAGE, localedir=LOCALEDIR)
 #    _ = cat.gettext
-#    print _('Hello World')
+#    print(_('Hello World'))
 
 # The resulting catalog object currently don't support access through a
 # dictionary API, which was supported (but apparently unused) in GNOME