commit | a181ec07af8f0ab34d17be777d65935189df5054 | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Tue Jun 04 20:24:05 2002 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Tue Jun 04 20:24:05 2002 +0000 |
tree | 880ba3de698da427c845ae2cdce39ea0bbfea5cd | |
parent | 332a1461274c356d38f558b27096708879fc36b4 [diff] |
Set repeat metadata for an option based on repeat local var not constant.
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 @@ ("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?