[Zodb-checkins] CVS: Zope3/src/zope/interface - adapter.py:1.6

Chris McDonough chrism at zope.com
Mon Jun 23 19:44:02 EDT 2003


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

Modified Files:
	adapter.py 
Log Message:
Fix lying error message.


=== Zope3/src/zope/interface/adapter.py 1.5 => 1.6 ===
--- Zope3/src/zope/interface/adapter.py:1.5	Wed May 21 13:26:39 2003
+++ Zope3/src/zope/interface/adapter.py	Mon Jun 23 18:44:01 2003
@@ -69,12 +69,13 @@
 
 
     def register(self, require, provide, object):
+
         if require is not None and not IInterface.isImplementedBy(require):
             raise TypeError(
                 "The require argument must be an interface (or None)")
         if not IInterface.isImplementedBy(provide):
             raise TypeError(
-                "The provide argument must be an interface (or None)")
+                "The provide argument must be an interface")
 
         # Invalidate our cache
         self._v_cache = {}




More information about the Zodb-checkins mailing list