pkg state: fix pylint W0604

************* Module salt.states.pkg
W0604: 48,4: Using the global statement at the module level
This commit is contained in:
Chris Rebert 2013-05-23 14:22:47 -06:00
parent 4ebbc336c5
commit 5e72a30af2

View File

@ -45,7 +45,6 @@ if salt.utils.is_windows():
from salt.modules.win_pkg import _get_package_info from salt.modules.win_pkg import _get_package_info
from salt.modules.win_pkg import _get_latest_pkg_version from salt.modules.win_pkg import _get_latest_pkg_version
from salt.modules.win_pkg import _reverse_cmp_pkg_versions from salt.modules.win_pkg import _reverse_cmp_pkg_versions
global _get_package_info, _get_latest_pkg_version, _reverse_cmp_pkg_versions
_get_package_info = namespaced_function(_get_package_info, globals()) _get_package_info = namespaced_function(_get_package_info, globals())
_get_latest_pkg_version = namespaced_function(_get_latest_pkg_version, globals()) _get_latest_pkg_version = namespaced_function(_get_latest_pkg_version, globals())
_reverse_cmp_pkg_versions = namespaced_function(_reverse_cmp_pkg_versions, globals()) _reverse_cmp_pkg_versions = namespaced_function(_reverse_cmp_pkg_versions, globals())