From: Hugo Date: Mon, 14 May 2018 13:16:05 +0000 (+0300) Subject: Unnecessary list call - rewrite as a literal X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8f62489d19f3c8e14570f7523579bbb6be8f8227;p=tweepy.git Unnecessary list call - rewrite as a literal --- diff --git a/tweepy/api.py b/tweepy/api.py index 9a66c61..26ed089 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1324,7 +1324,7 @@ class API(object): filename = filename.encode("utf-8") BOUNDARY = b'Tw3ePy' - body = list() + body = [] body.append(b'--' + BOUNDARY) body.append('Content-Disposition: form-data; name="{0}";' ' filename="{1}"'.format(form_field, filename)