Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40ebbef

Browse files
committed
Track extra arg to option_table to all uses of it
1 parent 6b3996b commit 40ebbef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/distutils/fancy_getopt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ def generate_help (self, header=None):
358358
else:
359359
lines = ['Option summary:']
360360

361-
for (long,short,help) in self.option_table:
362-
361+
for option in self.option_table:
362+
long, short, help = option_table[:3]
363363
text = wrap_text(help, text_width)
364364
if long[-1] == '=':
365365
long = long[0:-1]

0 commit comments

Comments
 (0)