From 501447d7c7d8960e4f6e7f2661fcdb14a21d336b Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 15 Oct 2008 20:34:09 +0000 Subject: [PATCH] don't recurse into directories that start with '.' --- Tools/scripts/reindent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/scripts/reindent.py b/Tools/scripts/reindent.py index 65749f0be53..3e9affb9c51 100755 --- a/Tools/scripts/reindent.py +++ b/Tools/scripts/reindent.py @@ -99,7 +99,8 @@ def check(file): for name in names: fullname = os.path.join(file, name) if ((recurse and os.path.isdir(fullname) and - not os.path.islink(fullname)) + not os.path.islink(fullname) and + not os.path.split(fullname)[1].startswith(".")) or name.lower().endswith(".py")): check(fullname) return