[Checkins] SVN: zope.app.http/trunk/s use zope.deprecation instead of zope.deferredimport

Shane Hathaway shane at hathawaymix.org
Sat May 23 17:20:12 EDT 2009


Log message for revision 100297:
  use zope.deprecation instead of zope.deferredimport
  

Changed:
  U   zope.app.http/trunk/setup.py
  U   zope.app.http/trunk/src/zope/app/http/interfaces.py

-=-
Modified: zope.app.http/trunk/setup.py
===================================================================
--- zope.app.http/trunk/setup.py	2009-05-23 21:18:37 UTC (rev 100296)
+++ zope.app.http/trunk/setup.py	2009-05-23 21:20:11 UTC (rev 100297)
@@ -53,7 +53,7 @@
                 'zope.app.file',
                 'zope.app.zcmlfiles']),
       install_requires=['setuptools',
-                        'zope.deferredimport',
+                        'zope.deprecation',
                         'zope.interface',
                         'zope.publisher>=3.8.0',
                         'zope.container',

Modified: zope.app.http/trunk/src/zope/app/http/interfaces.py
===================================================================
--- zope.app.http/trunk/src/zope/app/http/interfaces.py	2009-05-23 21:18:37 UTC (rev 100296)
+++ zope.app.http/trunk/src/zope/app/http/interfaces.py	2009-05-23 21:20:11 UTC (rev 100297)
@@ -18,14 +18,11 @@
 __docformat__ = 'restructuredtext'
 
 from zope.interface import Interface, Attribute
-import zope.deferredimport
 
-zope.deferredimport.deprecatedFrom(
-    "This import has moved to zope.publisher.interfaces.http. "
-    "This import will stop working in the future.",
-    'zope.publisher.interfaces.http',
-    'IHTTPException',
-    )
+from zope.publisher.interfaces.http import IHTTPException
+from zope.deprecation import deprecated
+deprecated(
+    'IHTTPException', "moved to zope.publisher.interfaces.http")
 
 class INullResource(Interface):
     """Placeholder objects for new container items to be created via PUT



More information about the Checkins mailing list