[Zope3-checkins] CVS: Zope3/src/zope/interface - verify.py:1.3

Jim Fulton jim@zope.com
Mon, 20 Jan 2003 15:00:15 -0500


Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv7980

Modified Files:
	verify.py 
Log Message:
Changed verification of methods to skip verification of methods that
don't wrap functions, since, in that case, we don't know how to get
signature information.


=== Zope3/src/zope/interface/verify.py 1.2 => 1.3 ===
--- Zope3/src/zope/interface/verify.py:1.2	Wed Dec 25 09:13:42 2002
+++ Zope3/src/zope/interface/verify.py	Mon Jan 20 15:00:13 2003
@@ -50,7 +50,7 @@
         if type(attr) is FunctionType:
             # should never get here
             meth = fromFunction(attr, n)
-        elif type(attr) is MethodType:
+        elif type(attr) is MethodType and type(attr.im_func) is FunctionType:
             meth = fromMethod(attr, n)
         else:
             continue # must be an attribute...