mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 04:17:16 +00:00
Fix Colour.__str__ to actually pad zeroes.
This commit is contained in:
parent
92fe4daa86
commit
07607060c1
@ -65,7 +65,7 @@ class Colour:
|
|||||||
return not self.__eq__(other)
|
return not self.__eq__(other)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return '#' + format(self.value, 'x')
|
return '#{:0>6x}'.format(self.value)
|
||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self.value)
|
return hash(self.value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user