Issue 1328 forgot to use the maxdepth argument in ant_glob()

This commit is contained in:
Thomas Nagy 2013-06-21 18:15:17 +02:00
parent 58fe611bb9
commit 3f78d2223a
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ class Node(object):
nacc = []
return [nacc, nrej]
ret = [x for x in self.ant_iter(accept=accept, pats=[to_pat(incl), to_pat(excl)], maxdepth=25, dir=dir, src=src, remove=kw.get('remove', True))]
ret = [x for x in self.ant_iter(accept=accept, pats=[to_pat(incl), to_pat(excl)], maxdepth=kw.get('maxdepth', 25), dir=dir, src=src, remove=kw.get('remove', True))]
if kw.get('flat', False):
return ' '.join([x.path_from(self) for x in ret])