build_environment: windows harvest cleanup.
[blender.git] / tests / check_deprecated.py
index cf8f8e0cc354d64163c6796ce3df097c4a1c9073..7595bb4ff816d88e3910cb24897601d29f221fb9 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):
@@ -144,5 +142,6 @@ def main():
     else:
         print("\nnone found!")
 
+
 if __name__ == '__main__':
     main()