From 0785f6a19fa398a81b3f990194b32d1742b6276e Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 2 Jan 2021 20:03:38 -0600 Subject: [PATCH] Optimize list_to_csv function --- tweepy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/utils.py b/tweepy/utils.py index a2ea4a9..b1a2515 100644 --- a/tweepy/utils.py +++ b/tweepy/utils.py @@ -24,4 +24,4 @@ def convert_to_utf8_str(arg): def list_to_csv(item_list): if item_list: - return ','.join([str(i) for i in item_list]) + return ','.join(map(str, item_list)) -- 2.25.1