[Checkins] SVN: zope.location/trunk/ Moar coverage.
Tres Seaver
cvs-admin at zope.org
Thu Jun 7 01:32:15 UTC 2012
Log message for revision 126648:
Moar coverage.
Changed:
_U zope.location/trunk/
U zope.location/trunk/src/zope/location/pickling.py
-=-
Modified: zope.location/trunk/src/zope/location/pickling.py
===================================================================
--- zope.location/trunk/src/zope/location/pickling.py 2012-06-07 01:32:08 UTC (rev 126647)
+++ zope.location/trunk/src/zope/location/pickling.py 2012-06-07 01:32:11 UTC (rev 126648)
@@ -15,26 +15,24 @@
"""
__docformat__ = 'restructuredtext'
-from zope.component import adapts
+from zope.component import adapter
from zope.interface import implementer
from zope.location.interfaces import ILocation
from zope.location.location import inside
try:
from zope.copy.interfaces import ICopyHook, ResumeCopy
-except ImportError:
+except ImportError: #pragma NO COVER
raise NotImplementedError("zope.location.pickling is not supported "
"because zope.copy is not available")
+ at adapter(ILocation)
@implementer(ICopyHook)
class LocationCopyHook(object):
"""Copy hook to preserve copying referenced objects that are not
located inside object that's being copied.
"""
-
- adapts(ILocation)
-
def __init__(self, context):
self.context = context
More information about the checkins
mailing list