Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-08-23 08:36:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-23 08:36:39 +0300
commit46b9f89f5e46109ea811ccf474acb09616e7c33b (patch)
treea144ba693e5ada2691b78259b5580bfec60ab0d8 /tests/check_deprecated.py
parent1e60ac33949ae533857fc6a48ce5fbc2402dd060 (diff)
Tests: fix incorrect check for hidden dir
Copy-pasted mistake in tests and tools.
Diffstat (limited to 'tests/check_deprecated.py')
-rw-r--r--tests/check_deprecated.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/check_deprecated.py b/tests/check_deprecated.py
index cf8f8e0cc35..6e07f8fdb31 100644
--- a/tests/check_deprecated.py
+++ b/tests/check_deprecated.py
@@ -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):