mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
Add __repr__ to SerializedProgram`.
This commit is contained in:
@@ -152,6 +152,9 @@ class SerializedProgram:
|
||||
def __str__(self) -> str:
|
||||
return bytes(self).hex()
|
||||
|
||||
def __repr__(self):
|
||||
return "%s(%s)" % (self.__class__.__name__, str(self))
|
||||
|
||||
def __eq__(self, other) -> bool:
|
||||
if not isinstance(other, SerializedProgram):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user