[New-bugs-announce] [issue17940] extra code in argparse.py

Alex report at bugs.python.org
Thu May 9 00:32:30 CEST 2013


New submission from Alex:

In class HelpFormatter, class _Section, format_help(self)
(lines 199 & 200), the two lines

            for func, args in self.items:
                func(*args)

aren't necessary; the results of func are ignored.
"func" is applied (again) on the next line when the
output is joined into item_help.

Cheers
.a

----------
components: Library (Lib)
messages: 188742
nosy: aho
priority: normal
severity: normal
status: open
title: extra code in argparse.py
type: enhancement
versions: Python 2.7

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


More information about the New-bugs-announce mailing list