Change Handle as string to be pure JSON-like representation
This commit is contained in:
parent
4405e32cb9
commit
130e2890c6
@ -31,7 +31,8 @@ class Handle:
|
||||
self.handle = handle
|
||||
|
||||
def __repr__(self):
|
||||
return "Handle(%s, %s)" % (repr(self.classname), repr(self.handle))
|
||||
return str({"_class": "Handle",
|
||||
"handle": self.handle})
|
||||
|
||||
def __str__(self):
|
||||
if self.handle:
|
||||
|
Loading…
Reference in New Issue
Block a user