Show More
@@ -34,7 +34,7 b' from types import MethodType' | |||||
34 | from types import ModuleType |
|
34 | from types import ModuleType | |
35 | import weakref |
|
35 | import weakref | |
36 |
|
36 | |||
37 |
from . |
|
37 | from . import advice as advicemod | |
38 | from .interface import InterfaceClass |
|
38 | from .interface import InterfaceClass | |
39 | from .interface import SpecificationBase |
|
39 | from .interface import SpecificationBase | |
40 | from .interface import Specification |
|
40 | from .interface import Specification | |
@@ -451,7 +451,7 b' def _implements(name, interfaces, classI' | |||||
451 | raise TypeError(name+" can be used only once in a class definition.") |
|
451 | raise TypeError(name+" can be used only once in a class definition.") | |
452 |
|
452 | |||
453 | locals['__implements_advice_data__'] = interfaces, classImplements |
|
453 | locals['__implements_advice_data__'] = interfaces, classImplements | |
454 | addClassAdvisor(_implements_advice, depth=3) |
|
454 | advicemod.addClassAdvisor(_implements_advice, depth=3) | |
455 |
|
455 | |||
456 | def implements(*interfaces): |
|
456 | def implements(*interfaces): | |
457 | """Declare interfaces implemented by instances of a class |
|
457 | """Declare interfaces implemented by instances of a class | |
@@ -732,7 +732,7 b' def classProvides(*interfaces):' | |||||
732 |
|
732 | |||
733 | locals["__provides__"] = _normalizeargs(interfaces) |
|
733 | locals["__provides__"] = _normalizeargs(interfaces) | |
734 |
|
734 | |||
735 | addClassAdvisor(_classProvides_advice, depth=2) |
|
735 | advicemod.addClassAdvisor(_classProvides_advice, depth=2) | |
736 |
|
736 | |||
737 | def _classProvides_advice(cls): |
|
737 | def _classProvides_advice(cls): | |
738 | # This entire approach is invalid under Py3K. Don't even try to fix |
|
738 | # This entire approach is invalid under Py3K. Don't even try to fix |
General Comments 0
You need to be logged in to leave comments.
Login now