summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorKevin L. Mitchell <kevin.mitchell@rackspace.com>2012-10-09 15:52:12 -0500
committerKevin L. Mitchell <kevin.mitchell@rackspace.com>2012-10-09 15:52:12 -0500
commit8b585cb969a823246a36d5b2cc7eac725e378fca (patch)
tree061da26f047fdcc6345380ba3db93934d8baf164 /openstack
parent3fc46892b6ce7f0ab2112f46e903a4d4c2f8e9ae (diff)
downloadoslo-8b585cb969a823246a36d5b2cc7eac725e378fca.tar.gz
oslo-8b585cb969a823246a36d5b2cc7eac725e378fca.tar.xz
oslo-8b585cb969a823246a36d5b2cc7eac725e378fca.zip
Remove an unneeded 'global'
If we're not changing the value of a global variable, there's no need to use the 'global' statement. This removes an unnecessary 'global' statement from the register() function/decorator. Change-Id: I0d4388f28acf3c9dc5969d86d74f384f1f3d0474
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/policy.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/openstack/common/policy.py b/openstack/common/policy.py
index cb564c0..6ef62c7 100644
--- a/openstack/common/policy.py
+++ b/openstack/common/policy.py
@@ -858,7 +858,6 @@ def register(name, func=None):
# class. Returns the function or class for compliance with the
# decorator interface.
def decorator(func):
- global _checks
_checks[name] = func
return func