waf, waflib: update to 1.7.13
[aubio.git] / waflib / Node.py
index 79d6bbf..7729613 100644 (file)
@@ -33,6 +33,7 @@ exclude_regs='''
 **/{arch}
 **/_darcs
 **/_darcs/**
+**/.intlcache
 **/.DS_Store'''
 def split_path(path):
        return path.split('/')
@@ -89,10 +90,10 @@ class Node(object):
                os.chmod(self.abspath(),val)
        def delete(self):
                try:
-                       if getattr(self,'children',None):
+                       if hasattr(self,'children'):
                                shutil.rmtree(self.abspath())
                        else:
-                               os.unlink(self.abspath())
+                               os.remove(self.abspath())
                except OSError:
                        pass
                self.evict()
@@ -327,7 +328,7 @@ class Node(object):
                        if[]in nrej:
                                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])
                return ret