Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da31a3f

Browse files
author
Tarek Ziadé
committed
Merged revisions 72577 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r72577 | tarek.ziade | 2009-05-12 09:01:29 +0200 (Tue, 12 May 2009) | 1 line removing the assert statement so the code works when Python is run with -O ........
1 parent 3261fa5 commit da31a3f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/distutils/command/install_lib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def finalize_options(self):
7777
if not isinstance(self.optimize, int):
7878
try:
7979
self.optimize = int(self.optimize)
80-
assert self.optimize in (0, 1, 2)
80+
if self.optimize not in (0, 1, 2):
81+
raise AssertionError
8182
except (ValueError, AssertionError):
8283
raise DistutilsOptionError("optimize must be 0, 1, or 2")
8384

0 commit comments

Comments
 (0)