[Python-checkins] r66903 - python/trunk/Tools/scripts/reindent.py

benjamin.peterson python-checkins at python.org
Wed Oct 15 22:34:09 CEST 2008


Author: benjamin.peterson
Date: Wed Oct 15 22:34:09 2008
New Revision: 66903

Log:
don't recurse into directories that start with '.'

Modified:
   python/trunk/Tools/scripts/reindent.py

Modified: python/trunk/Tools/scripts/reindent.py
==============================================================================
--- python/trunk/Tools/scripts/reindent.py	(original)
+++ python/trunk/Tools/scripts/reindent.py	Wed Oct 15 22:34:09 2008
@@ -99,7 +99,8 @@
         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


More information about the Python-checkins mailing list