[Checkins] SVN: zope.location/trunk/ Removed backward-compatibility imports:
Tres Seaver
cvs-admin at zope.org
Thu Jun 7 15:10:30 UTC 2012
Log message for revision 126661:
Removed backward-compatibility imports:
- 'zope.copy.clone' (aliased as 'zope.location.pickling.locationCopy')
- 'zope.copy.CopyPersistent' (aliased as
'zope.location.pickling.CopyPersistent').
- 'zope.site.interfaces.IPossibleSite' (aliased as
'zope.location.interfaces.IPossibleSite').
Changed:
U zope.location/trunk/CHANGES.txt
U zope.location/trunk/src/zope/location/interfaces.py
U zope.location/trunk/src/zope/location/pickling.py
-=-
Modified: zope.location/trunk/CHANGES.txt
===================================================================
--- zope.location/trunk/CHANGES.txt 2012-06-07 15:04:22 UTC (rev 126660)
+++ zope.location/trunk/CHANGES.txt 2012-06-07 15:10:21 UTC (rev 126661)
@@ -5,6 +5,16 @@
4.0.0 (unreleased)
------------------
+- Removed backward-compatibility imports:
+
+ - ``zope.copy.clone`` (aliased as ``zope.location.pickling.locationCopy``)
+
+ - ``zope.copy.CopyPersistent`` (aliased as
+ ``zope.location.pickling.CopyPersistent``).
+
+ - ``zope.site.interfaces.IPossibleSite`` (aliased as
+ ``zope.location.interfaces.IPossibleSite``).
+
- Added Python 3.2 support.
- Made ``zope.component`` dependency optional. Use the ``component`` extra
Modified: zope.location/trunk/src/zope/location/interfaces.py
===================================================================
--- zope.location/trunk/src/zope/location/interfaces.py 2012-06-07 15:04:22 UTC (rev 126660)
+++ zope.location/trunk/src/zope/location/interfaces.py 2012-06-07 15:10:21 UTC (rev 126661)
@@ -128,9 +128,6 @@
# backwardc-comppatibiltiy
try:
from zope.component.interfaces import ISite
- from zope.component.interfaces import IPossibleSite # BBB
except ImportError: #pragma NO COVER
class ISite(Interface):
pass
- class IPossibleSite(Interface): # BBB
- pass
Modified: zope.location/trunk/src/zope/location/pickling.py
===================================================================
--- zope.location/trunk/src/zope/location/pickling.py 2012-06-07 15:04:22 UTC (rev 126660)
+++ zope.location/trunk/src/zope/location/pickling.py 2012-06-07 15:10:21 UTC (rev 126661)
@@ -37,13 +37,3 @@
if not inside(self.context, toplevel):
return self.context
raise ResumeCopy
-
-# BBB 2009-09-02
-# The locationCopy was replaced by more generic "clone" function
-# in the zope.copy package. This reference may be removed someday.
-from zope.copy import clone as locationCopy
-
-# BBB 2009-09-02
-# The CopyPersistent was made more generic and moved to the
-# zope.copy package. This reference may be removed someday.
-from zope.copy import CopyPersistent
More information about the checkins
mailing list