summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:24:05 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:24:05 (GMT)
commita181ec07af8f0ab34d17be777d65935189df5054 (patch)
tree880ba3de698da427c845ae2cdce39ea0bbfea5cd /Lib
parent332a1461274c356d38f558b27096708879fc36b4 (diff)
downloadcpython-a181ec07af8f0ab34d17be777d65935189df5054.zip
cpython-a181ec07af8f0ab34d17be777d65935189df5054.tar.gz
cpython-a181ec07af8f0ab34d17be777d65935189df5054.tar.bz2
Set repeat metadata for an option based on repeat local var not
constant.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/fancy_getopt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/fancy_getopt.py b/Lib/distutils/fancy_getopt.py
index fe9b0d4..cb89e07 100644
--- a/Lib/distutils/fancy_getopt.py
+++ b/Lib/distutils/fancy_getopt.py
@@ -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?