Unnecessary list call - rewrite as a literal
authorHugo <hugovk@users.noreply.github.com>
Mon, 14 May 2018 13:16:05 +0000 (16:16 +0300)
committerHugo <hugovk@users.noreply.github.com>
Mon, 14 May 2018 13:16:30 +0000 (16:16 +0300)
tweepy/api.py

index 9a66c615b63682ba1fdbbec1b98a211c788d338d..26ed0891c930a14b90172cc24bd37863604c5907 100644 (file)
@@ -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)