Horizon's __init__.py has some code that explicitly allows it to
be imported by setup.py before Django is set up, by making import
failures just throw a warning instead of an exception. But that code
is defeated by a bunch of asserts that were added later, that just
make the error even more confusing.
I'm removing the asserts and replacing them with __all__.
Reviewed: https:/ /review. openstack. org/56547 github. com/openstack/ horizon/ commit/ b6eb9a2480a82cf 93f7a62e9c7373f eddc8296fe
Committed: http://
Submitter: Jenkins
Branch: master
commit b6eb9a2480a82cf 93f7a62e9c7373f eddc8296fe
Author: Radomir Dopieralski <email address hidden>
Date: Fri Nov 15 10:04:31 2013 +0100
Remove asserts for optional imports
Horizon's __init__.py has some code that explicitly allows it to
be imported by setup.py before Django is set up, by making import
failures just throw a warning instead of an exception. But that code
is defeated by a bunch of asserts that were added later, that just
make the error even more confusing.
I'm removing the asserts and replacing them with __all__.
Closes-bug: #1210253 7216da9a5460f5e 4e323b4d6e9
Change-Id: I0fde7810a033fd