Handles: add __str__ method

svn: r23339
This commit is contained in:
Doug Blank 2013-10-19 13:08:19 +00:00
parent 5c50673f15
commit f74d1e51a1

View File

@ -36,3 +36,9 @@ class Handle:
def __repr__(self):
return "Handle(%s, %s)" % (self.classname, self.handle)
def __str__(self):
if self.handle:
return self.handle
else:
return "None"