[py-svn] r37986 - py/trunk/py/test/rsession
fijal at codespeak.net
fijal at codespeak.net
Tue Feb 6 00:09:08 CET 2007
Author: fijal
Date: Tue Feb 6 00:09:05 2007
New Revision: 37986
Modified:
py/trunk/py/test/rsession/hostmanage.py
Log:
Add a repr if we have str
Add delete keyword to parent
Modified: py/trunk/py/test/rsession/hostmanage.py
==============================================================================
--- py/trunk/py/test/rsession/hostmanage.py (original)
+++ py/trunk/py/test/rsession/hostmanage.py Tue Feb 6 00:09:05 2007
@@ -57,6 +57,9 @@
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 @@
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)
More information about the py-svn
mailing list