Skip to content

Commit db630db

Browse files
author
benjamin.peterson
committed
don't recurse into directories that start with '.'
git-svn-id: http://svn.python.org/projects/python/trunk@66903 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 17991d3 commit db630db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Tools/scripts/reindent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def check(file):
9999
for name in names:
100100
fullname = os.path.join(file, name)
101101
if ((recurse and os.path.isdir(fullname) and
102-
not os.path.islink(fullname))
102+
not os.path.islink(fullname) and
103+
not os.path.split(fullname)[1].startswith("."))
103104
or name.lower().endswith(".py")):
104105
check(fullname)
105106
return

0 commit comments

Comments
 (0)