Browse Source

Remove extraneous unneeded hash calls.

pull/468/head
Rapptz 8 years ago
parent
commit
7e2c016eaa
  1. 2
      discord/mixins.py
  2. 2
      discord/user.py

2
discord/mixins.py

@ -39,4 +39,4 @@ class Hashable(EqualityComparable):
__slots__ = () __slots__ = ()
def __hash__(self): def __hash__(self):
return hash(self.id) return self.id >> 22

2
discord/user.py

@ -81,7 +81,7 @@ class User(discord.abc.Messageable):
return not self.__eq__(other) return not self.__eq__(other)
def __hash__(self): def __hash__(self):
return hash(self.id) return self.id >> 22
def __repr__(self): def __repr__(self):
return '<User id={0.id} name={0.name!r} discriminator={0.discriminator!r} bot={0.bot}>'.format(self) return '<User id={0.id} name={0.name!r} discriminator={0.discriminator!r} bot={0.bot}>'.format(self)

Loading…
Cancel
Save