From: Harmon Date: Mon, 2 Sep 2019 04:45:06 +0000 (-0500) Subject: Optimize API.statuses_lookup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a5b487eefe1a569390705230a7b22ca86aabf1ae;p=tweepy.git Optimize API.statuses_lookup --- diff --git a/tweepy/api.py b/tweepy/api.py index 3099329..4ffd77b 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -104,7 +104,7 @@ class API(object): :allowed_param: 'id', 'include_entities', 'trim_user', 'map', 'include_ext_alt_text', 'include_card_uri' """ - kwargs.update({'id': list_to_csv(id_)}) + kwargs['id'] = list_to_csv(id_) if 'map_' in kwargs: kwargs['map'] = kwargs.pop('map_')