[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - dependencies.py:1.4
Fred L. Drake, Jr.
fred at zope.com
Wed Apr 7 23:50:47 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv10049
Modified Files:
dependencies.py
Log Message:
minor nit: just skip blank lines in dependency data; this is not PEP 262
=== Packages/zpkgtools/zpkgtools/dependencies.py 1.3 => 1.4 ===
--- Packages/zpkgtools/zpkgtools/dependencies.py:1.3 Mon Mar 29 11:50:58 2004
+++ Packages/zpkgtools/zpkgtools/dependencies.py Wed Apr 7 23:50:15 2004
@@ -20,11 +20,9 @@
def load(f):
deps = sets.Set()
- while True:
- line = f.readline().strip()
- if not line:
- return deps
- if line[0] == "#":
+ for line in f:
+ line = line.strip()
+ if line[:1] in ("", "#"):
continue
dep = locationmap.normalizeResourceId(line)
deps.add(dep)
More information about the Zope-CVS
mailing list