summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2012-11-21 10:53:18 -0800
committerMonty Taylor <mordred@inaugust.com>2012-11-21 10:53:18 -0800
commit42d5bb541772c1e9885a5257da8f0cc1e11f5f24 (patch)
tree076c3fdc601c8b8aa30a0086ba7f15c11f9eff1a
parent69aebcec456b7ae52a069a972e399b2e7102673c (diff)
downloadoslo-serialization-42d5bb541772c1e9885a5257da8f0cc1e11f5f24.tar.gz
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
-rw-r--r--openstack/common/jsonutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/jsonutils.py b/openstack/common/jsonutils.py
index f96e727..efc8324 100644
--- a/openstack/common/jsonutils.py
+++ b/openstack/common/jsonutils.py
@@ -120,7 +120,7 @@ def to_primitive(value, convert_instances=False, level=0):
level=level + 1)
else:
return value
- except TypeError, e:
+ except TypeError:
# Class objects are tricky since they may define something like
# __iter__ defined but it isn't callable as list().
return unicode(value)