Actually drop copy.copy in Member

Remove the old and slow Member._copy implementation that was left over
by accident in 095f0ec.  Since it was defined later it overrode the new
implementation and rendered it moot.
This commit is contained in:
Hornwitser 2018-10-27 16:17:51 +02:00 committed by Rapptz
parent e89e7dfe93
commit 7fe4c999fb

View File

@ -25,7 +25,6 @@ DEALINGS IN THE SOFTWARE.
"""
import itertools
import copy
import discord.abc
@ -225,11 +224,6 @@ class Member(discord.abc.Messageable, _BaseUser):
u.avatar = user.get('avatar', u.avatar)
u.discriminator = user.get('discriminator', u.discriminator)
def _copy(self):
c = copy.copy(self)
c._user = copy.copy(self._user)
return c
@property
def colour(self):
"""A property that returns a :class:`Colour` denoting the rendered colour