ENH: rudimentary __str__ for the ticket

pull/4/head
Yaroslav Halchenko 2011-10-06 17:18:28 -04:00
parent 94aa94e966
commit 1674b7b4f2
1 changed files with 4 additions and 0 deletions

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