welp, wasnt aware __hex__ got removed in py3
This commit is contained in:
parent
bbaf3375a8
commit
2774cfd3e9
@ -85,8 +85,8 @@ class Colour:
|
||||
def __int__(self):
|
||||
return int(str(self.value), 16)
|
||||
|
||||
def __hex__(self):
|
||||
return hex(self.value)
|
||||
def __index__(self):
|
||||
return self.value
|
||||
|
||||
@property
|
||||
def r(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user