From 8f62489d19f3c8e14570f7523579bbb6be8f8227 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 14 May 2018 16:16:05 +0300 Subject: [PATCH] Unnecessary list call - rewrite as a literal --- tweepy/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1