diff options
| author | Kevin L. Mitchell <kevin.mitchell@rackspace.com> | 2012-10-09 15:52:12 -0500 |
|---|---|---|
| committer | Kevin L. Mitchell <kevin.mitchell@rackspace.com> | 2012-10-09 15:52:12 -0500 |
| commit | 8b585cb969a823246a36d5b2cc7eac725e378fca (patch) | |
| tree | 061da26f047fdcc6345380ba3db93934d8baf164 /openstack | |
| parent | 3fc46892b6ce7f0ab2112f46e903a4d4c2f8e9ae (diff) | |
| download | oslo-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.py | 1 |
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 |
