[Checkins] SVN: z3c.testsetup/trunk/src/z3c/testsetup/ Ignore hidden files.
Uli Fouquet
uli at gnufix.de
Mon May 4 07:12:09 EDT 2009
Log message for revision 99703:
Ignore hidden files.
Changed:
U z3c.testsetup/trunk/src/z3c/testsetup/base.py
U z3c.testsetup/trunk/src/z3c/testsetup/doctesting.py
-=-
Modified: z3c.testsetup/trunk/src/z3c/testsetup/base.py
===================================================================
--- z3c.testsetup/trunk/src/z3c/testsetup/base.py 2009-05-04 10:42:46 UTC (rev 99702)
+++ z3c.testsetup/trunk/src/z3c/testsetup/base.py 2009-05-04 11:12:09 UTC (rev 99703)
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2008 Zope Corporation and Contributors.
+# Copyright (c) 2008-2009 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -82,6 +82,9 @@
"""
if os.path.splitext(filepath)[1].lower() not in self.extensions:
return False
+ if os.path.basename(filepath).startswith('.'):
+ # Ignore *nix hidden files
+ return False
if not self.fileContains(filepath, self.regexp_list):
return False
return True
Modified: z3c.testsetup/trunk/src/z3c/testsetup/doctesting.py
===================================================================
--- z3c.testsetup/trunk/src/z3c/testsetup/doctesting.py 2009-05-04 10:42:46 UTC (rev 99702)
+++ z3c.testsetup/trunk/src/z3c/testsetup/doctesting.py 2009-05-04 11:12:09 UTC (rev 99703)
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2007-2008 Zope Corporation and Contributors.
+# Copyright (c) 2007-2009 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -135,6 +135,9 @@
"""
if os.path.splitext(filepath)[1].lower() not in self.extensions:
return False
+ if os.path.basename(filepath).startswith('.'):
+ # Ignore *nix hidden files
+ return False
if get_marker_from_file('doctest', filepath) is None:
return False
return True
More information about the Checkins
mailing list