Commit 8c78d3a5 authored by Barry Warsaw's avatar Barry Warsaw

write(): It's been generally agreed on the i18n-sig that the docstring

marker should be output as a #, flag, e.g. "#, docstring".
parent 6016e392
...@@ -342,7 +342,7 @@ class TokenEater: ...@@ -342,7 +342,7 @@ class TokenEater:
# comment stating so. This is to aid translators who may wish # comment stating so. This is to aid translators who may wish
# to skip translating some unimportant docstrings. # to skip translating some unimportant docstrings.
if reduce(operator.__add__, v.values()): if reduce(operator.__add__, v.values()):
print >> fp, '#. docstring' print >> fp, '#, docstring'
# k is the message string, v is a dictionary-set of (filename, # k is the message string, v is a dictionary-set of (filename,
# lineno) tuples. We want to sort the entries in v first by # lineno) tuples. We want to sort the entries in v first by
# file name and then by line number. # file name and then by line number.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment