Change some format usage to use %-formatting.

Minor speed increase when we're not doing excessive attribute
access or any type of formatting.
This commit is contained in:
Rapptz
2017-05-04 06:03:02 -04:00
parent 86bfcdd129
commit d24c2a09b6
5 changed files with 9 additions and 9 deletions

View File

@@ -249,8 +249,8 @@ class Member(discord.abc.Messageable):
def mention(self):
"""Returns a string that mentions the member."""
if self.nick:
return '<@!{}>'.format(self.id)
return '<@{}>'.format(self.id)
return '<@!%s>' % self.id
return '<@%s>' % self.id
@property
def display_name(self):