cpython: be3874cf87f3 (original) (raw)

Mercurial > cpython

changeset 100416:be3874cf87f3

Issue #17940: Remove redundant code from _Section.format_help() Output of func(*args) stored in the next line: item_help = join([func(*args) for func, args in self.items]) _Section.items only used by HelpFormatter._add_item() and it looks like it doesn't have any side effects. Patch by Yogesh Chaudhari. [#17940]

Berker Peksag berker.peksag@gmail.com
date Sat, 05 Mar 2016 14:05:45 +0200
parents c1c8d2e27267
children be993678d4f7
files Lib/argparse.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-)[+] [-] Lib/argparse.py 2

line wrap: on

line diff

--- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -210,8 +210,6 @@ class HelpFormatter(object): if self.parent is not None: self.formatter._indent() join = self.formatter._join_parts