[Zope3-checkins] CVS: Zope3/lib/python/Zope/Misc - GetDescr.py:1.3
Guido van Rossum
guido@python.org
Fri, 27 Sep 2002 21:02:39 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Misc
In directory cvs.zope.org:/tmp/cvs-serv2630
Modified Files:
GetDescr.py
Log Message:
Fix typo: AttributError -> AttributeError. Found by pychecker.
=== Zope3/lib/python/Zope/Misc/GetDescr.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/Misc/GetDescr.py:1.2 Mon Jun 10 19:29:28 2002
+++ Zope3/lib/python/Zope/Misc/GetDescr.py Fri Sep 27 21:02:39 2002
@@ -45,7 +45,7 @@
raise TypeError("name must be a string")
try:
d = obj.__dict__
- except AttributError:
+ except AttributeError:
isivar = 0
else:
isivar = name in d
@@ -56,7 +56,7 @@
break
else:
return None
- if not hasattr(found, "__get__"):
+_loop_callbacks if not hasattr(found, "__get__"):
return None
if not isivar or hasattr(found, "__set__"):
return found