[Zope-Checkins] CVS: Releases/Zope/inst - walkandscrub.py:1.5.44.1
Guido van Rossum
guido@python.org
Tue, 14 May 2002 09:39:08 -0400
Update of /cvs-repository/Releases/Zope/inst
In directory cvs.zope.org:/tmp/cvs-serv16532
Modified Files:
Tag: TextIndexDS9-branch
walkandscrub.py
Log Message:
It is not necessary to explicitly exclude '.' and '..' -- os.listdir()
hasn't returned these since, oh, well before Python 1.5.2...
Whitespace normalization.
=== Releases/Zope/inst/walkandscrub.py 1.5 => 1.5.44.1 ===
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
import os, sys
-DEBUG = 0
-if os.name in ('posix', 'nt', 'dos'):
- EXCLUDED_NAMES=['..', '.']
-else:
- EXCLUDED_NAMES=[]
+DEBUG = 0
+EXCLUDED_NAMES=[]
# extend EXCLUDED_NAMES here manually with filenames ala "asyncore.pyc" for
# files that are only distributed in compiled format (.pyc, .pyo)
# if necessary (not currently necessary in 2.3.1 AFAIK) - chrism
@@ -41,7 +38,7 @@
full = os.path.join(dirname, name)
os.unlink(full)
if DEBUG: print full
-
+
if __name__ == '__main__':
DEBUG = 1
walkandscrub(os.getcwd())