From 764d85942a48d96968a47159de47e4991f3e18a9 Mon Sep 17 00:00:00 2001 From: Florian GAULTIER Date: Wed, 23 Oct 2019 15:58:11 +0200 Subject: [PATCH] basestring -> str --- elastalert/alerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elastalert/alerts.py b/elastalert/alerts.py index 3dead34dd..01ccb85ef 100644 --- a/elastalert/alerts.py +++ b/elastalert/alerts.py @@ -2178,7 +2178,7 @@ def create_alert_config(self, match): value = cf_value['value'].format(**context) func(cf_key, value) alert_config[alert_config_field] = custom_fields.build() - elif isinstance(alert_config_value, basestring): + elif isinstance(alert_config_value, str): alert_config[alert_config_field] = alert_config_value.format(**context) elif isinstance(alert_config_value, (list, tuple)): formatted_list = []