summaryrefslogtreecommitdiffstats
path: root/openstack/common/importutils.py
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2012-11-21 10:53:18 -0800
committerMark McLoughlin <markmc@redhat.com>2012-11-28 17:05:36 +0000
commitcf705c59615fb68cdbfe664e7827e4a275a4a282 (patch)
treef7d8a2f674acb0d4df9339f77f3511a123f7a525 /openstack/common/importutils.py
parentf10b956dd5b88b048c582cadc3c22ec5360521c9 (diff)
downloadoslo-cf705c59615fb68cdbfe664e7827e4a275a4a282.tar.gz
oslo-cf705c59615fb68cdbfe664e7827e4a275a4a282.tar.xz
oslo-cf705c59615fb68cdbfe664e7827e4a275a4a282.zip
Make project pyflakes clean.
Added both a tox test-env for pyflakes and fixed the current pyflakes errors. This did actually fix a couple of bugs. The CI team has started using pyflakes on its projects and also has started using oslo for things, so ignoring pyflakes warnings on the oslo code was starting to get old. However, additionally, pyflakes is pretty solid, so we should maybe consider gating on it across the board. (% locals() is the biggest thing that we do that it doesn't like) Change-Id: Iac1ca62db301892b7863711162fcbc74807eb24f
Diffstat (limited to 'openstack/common/importutils.py')
-rw-r--r--openstack/common/importutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/importutils.py b/openstack/common/importutils.py
index f45372b..2a28b45 100644
--- a/openstack/common/importutils.py
+++ b/openstack/common/importutils.py
@@ -29,7 +29,7 @@ def import_class(import_str):
try:
__import__(mod_str)
return getattr(sys.modules[mod_str], class_str)
- except (ValueError, AttributeError), exc:
+ except (ValueError, AttributeError):
raise ImportError('Class %s cannot be found (%s)' %
(class_str,
traceback.format_exception(*sys.exc_info())))