mercurial/thirdparty/zope/interface/verify.py
changeset 37180 68ee61822182
parent 37178 943d77fc07a3
equal deleted inserted replaced
37179:338367d44d34 37180:68ee61822182
    11 # FOR A PARTICULAR PURPOSE.
    11 # FOR A PARTICULAR PURPOSE.
    12 #
    12 #
    13 ##############################################################################
    13 ##############################################################################
    14 """Verify interface implementations
    14 """Verify interface implementations
    15 """
    15 """
    16 from zope.interface.exceptions import BrokenImplementation, DoesNotImplement
    16 from __future__ import absolute_import
    17 from zope.interface.exceptions import BrokenMethodImplementation
    17 
       
    18 from .exceptions import BrokenImplementation, DoesNotImplement
       
    19 from .exceptions import BrokenMethodImplementation
    18 from types import FunctionType, MethodType
    20 from types import FunctionType, MethodType
    19 from zope.interface.interface import fromMethod, fromFunction, Method
    21 from .interface import fromMethod, fromFunction, Method
    20 import sys
    22 import sys
    21 
    23 
    22 # This will be monkey-patched when running under Zope 2, so leave this
    24 # This will be monkey-patched when running under Zope 2, so leave this
    23 # here:
    25 # here:
    24 MethodTypes = (MethodType, )
    26 MethodTypes = (MethodType, )