From 4bb692016570b08cc1e5e1b79e9a43e1f7ceb23d Mon Sep 17 00:00:00 2001 From: AndrewEichmann-NOAA Date: Mon, 31 Jul 2023 19:14:22 +0000 Subject: [PATCH] python style thing in something completely unrelated --- ush/ufsda/genYAML.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ush/ufsda/genYAML.py b/ush/ufsda/genYAML.py index accc8d5c5..b61b11de7 100644 --- a/ush/ufsda/genYAML.py +++ b/ush/ufsda/genYAML.py @@ -31,7 +31,7 @@ def genYAML(yamlconfig, output=None): # what if the config_dict has environment variables that need substituted? pattern = re.compile(r'.*?\${(\w+)}.*?') for key, value in config_dict.items(): - if type(value) == str: + if value is str: match = pattern.findall(value) if match: fullvalue = value