From cc0dfc1c3c2282b89084bc79501d2774022510be Mon Sep 17 00:00:00 2001 From: fijal Date: Tue, 6 Feb 2007 00:09:05 +0100 Subject: [PATCH] [svn r37986] Add a repr if we have str Add delete keyword to parent --HG-- branch : trunk --- py/test/rsession/hostmanage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/py/test/rsession/hostmanage.py b/py/test/rsession/hostmanage.py index 9c3494776..d1a4783d6 100644 --- a/py/test/rsession/hostmanage.py +++ b/py/test/rsession/hostmanage.py @@ -57,6 +57,9 @@ class HostInfo(object): def __str__(self): return "" % (self.hostname, self.relpath) + def __repr__(self): + return str(self) + def __hash__(self): return hash(self.hostid) @@ -75,8 +78,7 @@ class HostRSync(py.execnet.RSync): if 'ignores' in kwargs: ignores = kwargs.pop('ignores') self._ignores = ignores or [] - kwargs['delete'] = True - super(HostRSync, self).__init__(*args, **kwargs) + super(HostRSync, self).__init__(delete=True) def filter(self, path): path = py.path.local(path)