From 8b585cb969a823246a36d5b2cc7eac725e378fca Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Tue, 9 Oct 2012 15:52:12 -0500 Subject: 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 --- openstack/common/policy.py | 1 - 1 file changed, 1 deletion(-) (limited to 'openstack') 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 -- cgit