Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c78d3a

Browse files
committed
write(): It's been generally agreed on the i18n-sig that the docstring
marker should be output as a #, flag, e.g. "#, docstring".
1 parent 6016e39 commit 8c78d3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/i18n/pygettext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def write(self, fp):
342342
# comment stating so. This is to aid translators who may wish
343343
# to skip translating some unimportant docstrings.
344344
if reduce(operator.__add__, v.values()):
345-
print >> fp, '#. docstring'
345+
print >> fp, '#, docstring'
346346
# k is the message string, v is a dictionary-set of (filename,
347347
# lineno) tuples. We want to sort the entries in v first by
348348
# file name and then by line number.

0 commit comments

Comments
 (0)