]> granicus.if.org Git - python/commitdiff
Set repeat metadata for an option based on repeat local var not
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 20:24:05 +0000 (20:24 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 20:24:05 +0000 (20:24 +0000)
constant.

Lib/distutils/fancy_getopt.py

index fe9b0d4d94d675910444445cc1dc62f25d76c3f9..cb89e070d75e2469ad2c51fa297685e7e71dcc83 100644 (file)
@@ -182,7 +182,7 @@ class FancyGetopt:
                       ("invalid short option '%s': "
                        "must a single character or None") % short
 
-            self.repeat[long] = 1
+            self.repeat[long] = repeat
             self.long_opts.append(long)
 
             if long[-1] == '=':             # option takes an argument?