diff --git a/py/test/rsession/hostmanage.py b/py/test/rsession/hostmanage.py index 971c8d342..40d7858dc 100644 --- a/py/test/rsession/hostmanage.py +++ b/py/test/rsession/hostmanage.py @@ -52,9 +52,7 @@ class HostInfo(object): def __str__(self): return "" % (self.hostname, self.relpath) - - def __repr__(self): - return str(self) + __repr__ = __str__ def __hash__(self): return hash(self.hostid) @@ -63,7 +61,7 @@ class HostInfo(object): return self.hostid == other.hostid def __ne__(self, other): - return not self == other + return not self.hostid == other.hostid class HostRSync(py.execnet.RSync): """ RSyncer that filters out common files