From 688ffa4cee260dc12edc0b7d21eb2cfb822201b1 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 13 Aug 2018 14:09:55 -0700 Subject: [PATCH] We can create a frozenset from a tuple No need to create an intermediate set. --- lib/ansible/constants.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index e19fd7d5e36..250b27a26fb 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -123,9 +123,9 @@ VAULT_VERSION_MAX = 1.0 # object. The dictionary values are tuples, to account for aliases # in variable names. -COMMON_CONNECTION_VARS = frozenset(set(('ansible_connection', 'ansible_host', 'ansible_user', 'ansible_shell_executable', - 'ansible_port', 'ansible_pipelining', 'ansible_password', 'ansible_timeout', - 'ansible_shell_type', 'ansible_module_compression', 'ansible_private_key_file'))) +COMMON_CONNECTION_VARS = frozenset(('ansible_connection', 'ansible_host', 'ansible_user', 'ansible_shell_executable', + 'ansible_port', 'ansible_pipelining', 'ansible_password', 'ansible_timeout', + 'ansible_shell_type', 'ansible_module_compression', 'ansible_private_key_file')) MAGIC_VARIABLE_MAPPING = dict(