[Zope3-checkins] CVS: Zope3/utilities - finddeps.py:1.18

Fred L. Drake, Jr. fred at zope.com
Wed Apr 7 15:41:07 EDT 2004


Update of /cvs-repository/Zope3/utilities
In directory cvs.zope.org:/tmp/cvs-serv18276

Modified Files:
	finddeps.py 
Log Message:
don't ignore imports in Python files with names starting with an
underscore


=== Zope3/utilities/finddeps.py 1.17 => 1.18 ===
--- Zope3/utilities/finddeps.py:1.17	Wed Apr  7 13:47:36 2004
+++ Zope3/utilities/finddeps.py	Wed Apr  7 15:41:05 2004
@@ -56,7 +56,7 @@
 ZOPESRCPREFIX = os.path.join(ZOPESRC, "")
 
 # Matching expression for python files.
-pythonfile = re.compile(r'[a-zA-Z][a-zA-Z0-9_]*\.py$')
+pythonfile = re.compile(r'[a-zA-Z_][a-zA-Z0-9_]*\.py$')
 zcmlfile = re.compile(r'[a-zA-Z][a-zA-Z0-9_]*\.zcml$')
 
 # Matching expressions of dotted paths in XML




More information about the Zope3-Checkins mailing list