]> granicus.if.org Git - python/commitdiff
Track extra arg to option_table to all uses of it
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 21:10:35 +0000 (21:10 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 21:10:35 +0000 (21:10 +0000)
Lib/distutils/fancy_getopt.py

index 2ed29a24fd974d3afd4b2f04c9c00b0c40214d0b..a11b4d58409a7ae287ccdd901a875f1be13fbf88 100644 (file)
@@ -358,8 +358,8 @@ class FancyGetopt:
         else:
             lines = ['Option summary:']
 
-        for (long,short,help) in self.option_table:
-
+        for option in self.option_table:
+            long, short, help = option_table[:3]
             text = wrap_text(help, text_width)
             if long[-1] == '=':
                 long = long[0:-1]