[Zope3-checkins] CVS: Zope3/src/zope/component - adapter.py:1.4
Steve Alexander
steve@cat-box.net
Tue, 3 Jun 2003 10:18:45 -0400
Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv27786/src/zope/component
Modified Files:
adapter.py
Log Message:
Fixed formatting. Changed deriving from object for a metaclass statement
in the module.
=== Zope3/src/zope/component/adapter.py 1.3 => 1.4 ===
--- Zope3/src/zope/component/adapter.py:1.3 Wed May 21 16:30:05 2003
+++ Zope3/src/zope/component/adapter.py Tue Jun 3 10:18:45 2003
@@ -14,6 +14,7 @@
"""adapter service
"""
+__metaclass__ = type
import sys
from zope.interface import implements
from zope.interface.adapter import AdapterRegistry
@@ -21,7 +22,7 @@
from zope.component.interfaces import IGlobalAdapterService
import warnings
-class GlobalAdapterService(object):
+class GlobalAdapterService:
implements(IGlobalAdapterService)
@@ -70,7 +71,7 @@
warnings.warn("The name argument to queryAdapter is deprecated",
DeprecationWarning, 2)
return self.queryNamedAdapter(object, interface, name, default)
-
+
conform = getattr(object, '__conform__', None)
if conform is not None:
try: