diff options
author | Monty Taylor <mordred@inaugust.com> | 2012-11-22 22:57:24 -0800 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2012-11-28 17:04:28 +0000 |
commit | f10b956dd5b88b048c582cadc3c22ec5360521c9 (patch) | |
tree | eea6e92d81499cdb29e29eb2f8547f95deb007ea /update.py | |
parent | 0ac56f54542ac2068d7881c1befbea4b86075f86 (diff) | |
download | oslo-f10b956dd5b88b048c582cadc3c22ec5360521c9.tar.gz oslo-f10b956dd5b88b048c582cadc3c22ec5360521c9.tar.xz oslo-f10b956dd5b88b048c582cadc3c22ec5360521c9.zip |
Replace try: import with extras.try_import
The block form:
try:
import foo
except:
foo = None
is confusing to code analysis tools looking for redefinition. It's also a
common enough pattern that someone else has encoded it into a library. Let's
use that instead.
Change-Id: I35a5c7a7e3595a51ba1ef1886c3965f463dba04a
Diffstat (limited to 'update.py')
0 files changed, 0 insertions, 0 deletions