From: NotAFile Date: Sat, 15 Dec 2018 16:38:17 +0000 (+0100) Subject: switch print statement in docs to print function X-Git-Tag: v2.7.0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a8a337c153147a6bef5d3d69b854fa8fb9501e6;p=thirdparty%2Fbabel.git switch print statement in docs to print function --- diff --git a/docs/messages.rst b/docs/messages.rst index 9c66a42e..3ac03560 100644 --- a/docs/messages.rst +++ b/docs/messages.rst @@ -17,13 +17,13 @@ application as subject to localization, by wrapping them in functions such as .. code-block:: python - print _("Hello") + print(_("Hello")) instead of just: .. code-block:: python - print "Hello" + print("Hello") to make the string "Hello" localizable.