]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
write(): It's been generally agreed on the i18n-sig that the docstring
authorBarry Warsaw <barry@python.org>
Tue, 19 Jun 2001 19:54:19 +0000 (19:54 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 19 Jun 2001 19:54:19 +0000 (19:54 +0000)
marker should be output as a #, flag, e.g. "#, docstring".

Tools/i18n/pygettext.py

index a4bf01ff92a84dcd52c48ede891bd71347e7b1cf..11ce185af95ad41e7b41b480e17f68030551464f 100755 (executable)
@@ -342,7 +342,7 @@ class TokenEater:
                 # comment stating so.  This is to aid translators who may wish
                 # to skip translating some unimportant docstrings.
                 if reduce(operator.__add__, v.values()):
-                    print >> fp, '#. docstring'
+                    print >> fp, '#, docstring'
                 # k is the message string, v is a dictionary-set of (filename,
                 # lineno) tuples.  We want to sort the entries in v first by
                 # file name and then by line number.