[Python-modules-commits] [python-docutils] 12/14: make the help message not depend on runtime encoding
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Sat Dec 10 10:40:52 UTC 2016
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository python-docutils.
commit 8f0658957a05bcf614cb86f73750ef63a8e85a93
Author: Dmitry Shachnev <mitya57 at debian.org>
Date: Thu Oct 8 11:57:13 2015 -0700
make the help message not depend on runtime encoding
This message goes into manpage, and we do not want the manpage to misleadingly
mention build-time locale there.
Bug: https://bugs.debian.org/791587
Forwarded: no
Last-Update: 2015-07-21
Patch-Name: static-help-message.diff
---
docutils/frontend.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docutils/frontend.py b/docutils/frontend.py
index f837c62..dca26ea 100644
--- a/docutils/frontend.py
+++ b/docutils/frontend.py
@@ -482,8 +482,8 @@ class OptionParser(optparse.OptionParser, docutils.SettingsSpec):
['--output-encoding-error-handler'],
{'default': 'strict', 'validator': validate_encoding_error_handler}),
('Specify text encoding and error handler for error output. '
- 'Default: %s:%s.'
- % (default_error_encoding, default_error_encoding_error_handler),
+ 'Default text encoding: system encoding. Default error handler: %s.'
+ % default_error_encoding_error_handler,
['--error-encoding', '-e'],
{'metavar': '<name[:handler]>', 'default': default_error_encoding,
'validator': validate_encoding_and_error_handler}),
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-docutils.git
More information about the Python-modules-commits
mailing list