Commit d505855a authored by Jason R. Coombs's avatar Jason R. Coombs

Implement self.find. Fixes #139.

--HG--
extra : amend_source : 98be824b4f846eb5fa8a8b046c3ef52a9fc2af4d
parent b4ba3389
...@@ -38,7 +38,7 @@ class re_finder(object): ...@@ -38,7 +38,7 @@ class re_finder(object):
path = postproc(path) path = postproc(path)
yield svn_utils.joinpath(dirname,path) yield svn_utils.joinpath(dirname,path)
def __call__(self, dirname=''): def find(self, dirname=''):
path = svn_utils.joinpath(dirname, self.path) path = svn_utils.joinpath(dirname, self.path)
if os.path.isfile(path): if os.path.isfile(path):
...@@ -48,6 +48,7 @@ class re_finder(object): ...@@ -48,6 +48,7 @@ class re_finder(object):
elif os.path.isdir(path): elif os.path.isdir(path):
for item in self.find(path): for item in self.find(path):
yield item yield item
__call__ = find
def _default_revctrl(dirname=''): def _default_revctrl(dirname=''):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment