[Python-checkins] distutils2: Fix attribute error
tarek.ziade
python-checkins at python.org
Sun Jan 30 10:43:57 CET 2011
tarek.ziade pushed dd51d4c1fe22 to distutils2:
http://hg.python.org/distutils2/rev/dd51d4c1fe22
changeset: 930:dd51d4c1fe22
user: ?ric Araujo <merwok at netwok.org>
date: Thu Dec 09 03:35:18 2010 +0100
summary:
Fix attribute error
files:
distutils2/command/cmd.py
diff --git a/distutils2/command/cmd.py b/distutils2/command/cmd.py
--- a/distutils2/command/cmd.py
+++ b/distutils2/command/cmd.py
@@ -165,7 +165,10 @@
header = "command options for '%s':" % self.get_command_name()
self.announce(indent + header, level=log.INFO)
indent = indent + " "
+ negative_opt = getattr(self, 'negative_opt', ())
for (option, _, _) in self.user_options:
+ if option in negative_opt:
+ continue
option = option.replace('-', '_')
if option[-1] == "=":
option = option[:-1]
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list