forked from p15670423/monkey
update __repr__ method in VictimHost class
- __repr__ method should return the standard constructor string (pep8)
This commit is contained in:
parent
0937ebb520
commit
7503a77ff7
|
@ -29,7 +29,7 @@ class VictimHost(object):
|
|||
return self.ip_addr.__cmp__(other.ip_addr)
|
||||
|
||||
def __repr__(self):
|
||||
return "<VictimHost %s>" % self.ip_addr
|
||||
return "VictimHost({0!r})".format(self.ip_addr)
|
||||
|
||||
def __str__(self):
|
||||
victim = "Victim Host %s: " % self.ip_addr
|
||||
|
|
Loading…
Reference in New Issue