[Python-checkins] r72579 - in python/branches/py3k: Lib/distutils/command/install_lib.py
tarek.ziade
python-checkins at python.org
Tue May 12 09:06:42 CEST 2009
Author: tarek.ziade
Date: Tue May 12 09:06:42 2009
New Revision: 72579
Log:
Merged revisions 72577 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72577 | tarek.ziade | 2009年05月12日 09:01:29 +0200 (2009年5月12日) | 1 line
removing the assert statement so the code works when Python is run with -O
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/distutils/command/install_lib.py
Modified: python/branches/py3k/Lib/distutils/command/install_lib.py
==============================================================================
--- python/branches/py3k/Lib/distutils/command/install_lib.py (original)
+++ python/branches/py3k/Lib/distutils/command/install_lib.py Tue May 12 09:06:42 2009
@@ -77,7 +77,8 @@
if not isinstance(self.optimize, int):
try:
self.optimize = int(self.optimize)
- assert self.optimize in (0, 1, 2)
+ if self.optimize not in (0, 1, 2):
+ raise AssertionError
except (ValueError, AssertionError):
raise DistutilsOptionError("optimize must be 0, 1, or 2")
More information about the Python-checkins
mailing list