[Zope3-checkins] SVN: Zope3/trunk/utilities/importchecker.py no
need to care how the "name" attribute is implemented
Fred L. Drake, Jr.
fdrake at gmail.com
Fri May 20 10:37:09 EDT 2005
Log message for revision 30464:
no need to care how the "name" attribute is implemented
Changed:
U Zope3/trunk/utilities/importchecker.py
-=-
Modified: Zope3/trunk/utilities/importchecker.py
===================================================================
--- Zope3/trunk/utilities/importchecker.py 2005-05-20 14:25:23 UTC (rev 30463)
+++ Zope3/trunk/utilities/importchecker.py 2005-05-20 14:37:09 UTC (rev 30464)
@@ -49,7 +49,7 @@
# from x import y
# y.k = v
expr = node.expr
- result.append(expr.__dict__.get('name', ''))
+ result.append(getattr(expr, 'name', ''))
return
for child in more_node.getChildNodes():
_findDottedNamesHelper(child, result)
More information about the Zope3-Checkins
mailing list