[Zope3-checkins] CVS: Zope3/utilities - finddeps.py:1.13
Fred L. Drake, Jr.
fred at zope.com
Fri Mar 12 11:08:55 EST 2004
Update of /cvs-repository/Zope3/utilities
In directory cvs.zope.org:/tmp/cvs-serv1944
Modified Files:
finddeps.py
Log Message:
- convert out-of-place comment to docstring (in an appropriate place)
- remove XXX comment that's no longer meaningful
=== Zope3/utilities/finddeps.py 1.12 => 1.13 ===
--- Zope3/utilities/finddeps.py:1.12 Fri Mar 12 10:58:23 2004
+++ Zope3/utilities/finddeps.py Fri Mar 12 11:08:49 2004
@@ -157,7 +157,6 @@
def add_import(self, name, lineno):
if name not in self.module_checks:
- # determine if a module name, or something in a module:
self.check_module_name(name)
if not self.module_checks[name] and "." in name:
# if "." isn't in name, I'd be very surprised!
@@ -170,11 +169,11 @@
self.deps.append(Dependency(name, self.path, lineno))
def check_module_name(self, name):
+ """Check whether 'name' is a module name. Update module_checks."""
try:
__import__(name)
except ImportError:
self.module_checks[name] = False
- # XXX remove the last part and check again:
else:
self.module_checks[name] = name in sys.modules
More information about the Zope3-Checkins
mailing list