[svn r37986] Add a repr if we have str

Add delete keyword to parent

--HG--
branch : trunk
This commit is contained in:
fijal 2007-02-06 00:09:05 +01:00
parent 4af00f6682
commit cc0dfc1c3c
1 changed files with 4 additions and 2 deletions

View File

@ -57,6 +57,9 @@ class HostInfo(object):
def __str__(self):
return "<HostInfo %s:%s>" % (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)