summaryrefslogtreecommitdiffstats
path: root/openstack/common
diff options
context:
space:
mode:
authorSergey Lukjanov <slukjanov@mirantis.com>2013-07-19 22:59:51 +0400
committerSergey Lukjanov <slukjanov@mirantis.com>2013-07-20 03:24:49 +0400
commit7bf8ee930b1838a1b1640912df0e2050bd9b96ae (patch)
treee58db93dfc0e87883762eea967dce733552cf07e /openstack/common
parent3c69baf5c8db4b98df93c8ef5702d7df095d69ff (diff)
downloadoslo-7bf8ee930b1838a1b1640912df0e2050bd9b96ae.tar.gz
oslo-7bf8ee930b1838a1b1640912df0e2050bd9b96ae.tar.xz
oslo-7bf8ee930b1838a1b1640912df0e2050bd9b96ae.zip
Allow use of hacking 0.6.0 and enable new checks
There are only several errors after running hacking 0.6.0: * H501 Do not use locals() for string formatting * H231 Python 3.x incompatible 'except x,y:' construct Change-Id: Iacae482fda07507c3e7ce8e6da8dbb7bde699016
Diffstat (limited to 'openstack/common')
-rw-r--r--openstack/common/policy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/policy.py b/openstack/common/policy.py
index 5705d78..00531e5 100644
--- a/openstack/common/policy.py
+++ b/openstack/common/policy.py
@@ -750,7 +750,7 @@ def _parse_text_rule(rule):
return state.result
except ValueError:
# Couldn't parse the rule
- LOG.exception(_("Failed to understand rule %(rule)r") % locals())
+ LOG.exception(_("Failed to understand rule %r") % rule)
# Fail closed
return FalseCheck()