aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorHornwitser <[email protected]>2018-08-09 14:15:44 +0200
committerRapptz <[email protected]>2018-11-24 22:17:58 -0500
commit51d626eabef3b8310478c6a88c88b2a3cc290bde (patch)
tree40a38eba637723fa59d38bb9c7c1d8782abf76f4 /discord/http.py
parent[lint] Replace equality comparisons to singletons (diff)
downloaddiscord.py-51d626eabef3b8310478c6a88c88b2a3cc290bde.tar.xz
discord.py-51d626eabef3b8310478c6a88c88b2a3cc290bde.zip
[lint] Remove redundant paranthesis
Remove redundant parenthisis around await expressions. Left over from f25091ef.
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py
index 7fc6abda..25d3e1a1 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -218,7 +218,7 @@ class HTTPClient:
async def get_attachment(self, url):
async with self._session.get(url) as resp:
if resp.status == 200:
- return (await resp.read())
+ return await resp.read()
elif resp.status == 404:
raise NotFound(resp, 'attachment not found')
elif resp.status == 403: