mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Use f-strings in more places that were missed.
This commit is contained in:
1 parent
c3e0b6e123
commit
99fc950510
34 files changed
+220
-143
No files matched your search
+2
-2
@@ -587,7 +587,7 @@ class HTTPClient:
|
||||
r = Route('DELETE', '/guilds/{guild_id}/members/{user_id}', guild_id=guild_id, user_id=user_id)
|
||||
if reason:
|
||||
# thanks aiohttp
|
||||
r.url = '{0.url}?reason={1}'.format(r, _uriquote(reason))
|
||||
r.url = f'{r.url}?reason={_uriquote(reason)}'
|
||||
|
||||
return self.request(r)
|
||||
|
||||
@@ -599,7 +599,7 @@ class HTTPClient:
|
||||
|
||||
if reason:
|
||||
# thanks aiohttp
|
||||
r.url = '{0.url}?reason={1}'.format(r, _uriquote(reason))
|
||||
r.url = f'{r.url}?reason={_uriquote(reason)}'
|
||||
|
||||
return self.request(r, params=params)
|
||||
|
||||
|
||||
Reference in new issue
Block a user