forked from p34709852/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)
|
return self.ip_addr.__cmp__(other.ip_addr)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<VictimHost %s>" % self.ip_addr
|
return "VictimHost({0!r})".format(self.ip_addr)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
victim = "Victim Host %s: " % self.ip_addr
|
victim = "Victim Host %s: " % self.ip_addr
|
||||||
|
|
Loading…
Reference in New Issue