projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79b9955
)
Unnecessary list call - rewrite as a literal
author
Hugo
<hugovk@users.noreply.github.com>
Mon, 14 May 2018 13:16:05 +0000
(16:16 +0300)
committer
Hugo
<hugovk@users.noreply.github.com>
Mon, 14 May 2018 13:16:30 +0000
(16:16 +0300)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index 9a66c615b63682ba1fdbbec1b98a211c788d338d..26ed0891c930a14b90172cc24bd37863604c5907 100644
(file)
--- 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)