Merge branch 'master' into blender2.8
[blender.git] / tests / check_deprecated.py
index cf8f8e0cc354d64163c6796ce3df097c4a1c9073..6e07f8fdb31f4a04bc3e1e1a535ef220dbd0a0f0 100644 (file)
@@ -53,10 +53,8 @@ def is_source_any(filename):
 
 def source_list(path, filename_check=None):
     for dirpath, dirnames, filenames in os.walk(path):
-
-        # skip '.svn'
-        if dirpath.startswith("."):
-            continue
+        # skip '.git'
+        dirnames[:] = [d for d in dirnames if not d.startswith(".")]
 
         for filename in filenames:
             if filename_check is None or filename_check(filename):