[New-bugs-announce] [issue6253] optparse.OptionParser.get_usage uses wrong formatter

Jan Pobrislo report at bugs.python.org
Wed Jun 10 16:28:17 CEST 2009


New submission from Jan Pobrislo <ccx at volny.cz>:

When using OptionParser.format_help(formatter), the formatter parameter
should be used to format all of the help message. This is not the case
for usage message, as the method get_usage() is not passed the formatter
and always uses self.formatter. I'm using python-2.6.2-r1.

----------
components: Extension Modules
files: fix_optparse_usage_formatter.diff
keywords: patch
messages: 89202
nosy: ccx
severity: normal
status: open
title: optparse.OptionParser.get_usage uses wrong formatter
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file14254/fix_optparse_usage_formatter.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6253>
_______________________________________


More information about the New-bugs-announce mailing list