ENH: rudimentary __str__ for the ticket

This commit is contained in:
Yaroslav Halchenko 2011-10-06 17:18:28 -04:00
parent 94aa94e966
commit 1674b7b4f2

View file

@ -35,6 +35,10 @@ class Ticket:
self.__ip = ip
self.__time = time
self.__attempt = 0
def __str__(self):
return "%s: ip=%s time=%s #attempts=%d" % \
(self.__class__, self.__ip, self.__time, self.__attempt)
def setIP(self, value):
self.__ip = value