summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/check.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-04-17 14:34:49 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-04-17 14:34:49 (GMT)
commitf633ff4546a4d044803ea83901e8c4ea0ee60e87 (patch)
treee473055228447d362475bd31dc625797656e094a /Lib/distutils/command/check.py
parent86c06bc47f10d591528deff855ef028169a18b52 (diff)
downloadcpython-f633ff4546a4d044803ea83901e8c4ea0ee60e87.zip
cpython-f633ff4546a4d044803ea83901e8c4ea0ee60e87.tar.gz
cpython-f633ff4546a4d044803ea83901e8c4ea0ee60e87.tar.bz2
Merged revisions 71674 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71674 | tarek.ziade | 2009-04-17 16:29:56 +0200 (Fri, 17 Apr 2009) | 1 line DistutilsSetupError was not raised when one single warning occured ........
Diffstat (limited to 'Lib/distutils/command/check.py')
-rw-r--r--Lib/distutils/command/check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/check.py b/Lib/distutils/command/check.py
index 5dd73b0..9a8fca1 100644
--- a/Lib/distutils/command/check.py
+++ b/Lib/distutils/command/check.py
@@ -73,7 +73,7 @@ class check(Command):
# let's raise an error in strict mode, if we have at least
# one warning
- if self.strict and self._warnings > 1:
+ if self.strict and self._warnings > 0:
raise DistutilsSetupError('Please correct your package.')
def check_metadata(self):