diff --git a/awscli/customizations/eks/kubeconfig.py b/awscli/customizations/eks/kubeconfig.py index 592cd0709cd1..2155d002c71f 100644 --- a/awscli/customizations/eks/kubeconfig.py +++ b/awscli/customizations/eks/kubeconfig.py @@ -125,8 +125,7 @@ def _validate_list_entry_types(self, config): :type config: Kubeconfig """ for key, value in self._validation_content.items(): - if (key in config.content and - type(config.content[key]) == list): + if key in config.content and isinstance(config.content[key], list): for element in config.content[key]: if not isinstance(element, OrderedDict): raise KubeconfigCorruptedError( diff --git a/awscli/customizations/emr/configutils.py b/awscli/customizations/emr/configutils.py index f3b3f96856aa..de05d0a9bce2 100644 --- a/awscli/customizations/emr/configutils.py +++ b/awscli/customizations/emr/configutils.py @@ -36,7 +36,7 @@ def get_current_profile_var_name(session): def _get_profile_str(session, separator): profile_name = session.get_config_variable('profile') return 'default' if profile_name is None \ - else 'profile%c%s' % (separator, profile_name) + else f'profile{separator:c}{profile_name}' def is_any_role_configured(session):