Change Handle as string to be pure JSON-like representation

This commit is contained in:
Doug Blank 2013-11-09 21:58:16 -05:00
parent 4405e32cb9
commit 130e2890c6

View File

@ -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: