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

Fred L. Drake, Jr. fred at zope.com
Thu Mar 11 18:03:53 EST 2004


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

Modified Files:
	finddeps.py 
Log Message:
remove anachronism


=== Zope3/utilities/finddeps.py 1.10 => 1.11 ===
--- Zope3/utilities/finddeps.py:1.10	Thu Mar 11 17:59:35 2004
+++ Zope3/utilities/finddeps.py	Thu Mar 11 18:03:52 2004
@@ -118,7 +118,7 @@
     """Look through a file for dependencies."""
     deps = []
     lineno = 0
-    for line in open(path, 'r').readlines():
+    for line in open(path, 'r'):
         lineno += 1
         if line.startswith('from') or line.startswith('import'):
             deps.append(Dependency(line.split(' ')[1].strip(), path, lineno))
@@ -131,7 +131,7 @@
     localModule = localModule.replace('/', '.')
     deps = []
     lineno = 0
-    for line in open(path, 'r').readlines():
+    for line in open(path, 'r'):
         lineno += 1
         match = dottedName.findall(line)
         if match:




More information about the Zope3-Checkins mailing list