From d505855a1a59213b8a02d50870305c62c52d8399 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 5 Feb 2014 18:57:02 -0500 Subject: Implement self.find. Fixes #139. --HG-- extra : amend_source : 98be824b4f846eb5fa8a8b046c3ef52a9fc2af4d --- setuptools/command/sdist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setuptools/command/sdist.py') diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index e1112ff9..1bd07e65 100755 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -38,7 +38,7 @@ class re_finder(object): path = postproc(path) yield svn_utils.joinpath(dirname,path) - def __call__(self, dirname=''): + def find(self, dirname=''): path = svn_utils.joinpath(dirname, self.path) if os.path.isfile(path): @@ -48,6 +48,7 @@ class re_finder(object): elif os.path.isdir(path): for item in self.find(path): yield item + __call__ = find def _default_revctrl(dirname=''): -- cgit v1.2.1