From 7bf8ee930b1838a1b1640912df0e2050bd9b96ae Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Fri, 19 Jul 2013 22:59:51 +0400 Subject: 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 --- openstack/common/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack/common') 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() -- cgit