Commit cb0eb9b3 authored by Tarek Ziadé's avatar Tarek Ziadé

removing the assert statement so the code works when Python is run with -O

parent 364368f6
......@@ -80,7 +80,8 @@ class install_lib(Command):
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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment