From: Benjamin Peterson Date: Wed, 15 Oct 2008 20:34:09 +0000 (+0000) Subject: don't recurse into directories that start with '.' X-Git-Tag: v2.7a1~2738 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=501447d7c7d8960e4f6e7f2661fcdb14a21d336b;p=thirdparty%2FPython%2Fcpython.git don't recurse into directories that start with '.' --- diff --git a/Tools/scripts/reindent.py b/Tools/scripts/reindent.py index 65749f0be53a..3e9affb9c511 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