]> granicus.if.org Git - python/commitdiff
Use correct variable name
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 9 Aug 2001 20:57:46 +0000 (20:57 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 9 Aug 2001 20:57:46 +0000 (20:57 +0000)
Lib/distutils/fancy_getopt.py

index 6f8b8c06f18727cf16845232590279f31ce89f3a..83d07216a77aebad7fb827a7081d03adeec7c2be 100644 (file)
@@ -275,7 +275,7 @@ class FancyGetopt:
             if not self.takes_arg[opt]:     # boolean option?
                 if val != '':               # shouldn't have a value!
                     raise DistutilsInternalError, \
-                          "this can't happen: bad option value '%s'" % value
+                          "this can't happen: bad option value '%s'" % val
 
                 alias = self.negative_alias.get(opt)
                 if alias: