From 3ea6a768e0b43b8f48a3952eab324fa51e6d251f Mon Sep 17 00:00:00 2001 From: hpk Date: Thu, 8 Feb 2007 20:15:05 +0100 Subject: [PATCH] [svn r38198] almost cosmetic --HG-- branch : trunk --- py/test/rsession/hostmanage.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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