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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17940>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to