Handles: add __str__ method
svn: r23339
This commit is contained in:
parent
5c50673f15
commit
f74d1e51a1
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user