Show More
@@ -34,7 +34,7 b' from types import MethodType' | |||
|
34 | 34 | from types import ModuleType |
|
35 | 35 | import weakref |
|
36 | 36 | |
|
37 |
from . |
|
|
37 | from . import advice as advicemod | |
|
38 | 38 | from .interface import InterfaceClass |
|
39 | 39 | from .interface import SpecificationBase |
|
40 | 40 | from .interface import Specification |
@@ -451,7 +451,7 b' def _implements(name, interfaces, classI' | |||
|
451 | 451 | raise TypeError(name+" can be used only once in a class definition.") |
|
452 | 452 | |
|
453 | 453 | locals['__implements_advice_data__'] = interfaces, classImplements |
|
454 | addClassAdvisor(_implements_advice, depth=3) | |
|
454 | advicemod.addClassAdvisor(_implements_advice, depth=3) | |
|
455 | 455 | |
|
456 | 456 | def implements(*interfaces): |
|
457 | 457 | """Declare interfaces implemented by instances of a class |
@@ -732,7 +732,7 b' def classProvides(*interfaces):' | |||
|
732 | 732 | |
|
733 | 733 | locals["__provides__"] = _normalizeargs(interfaces) |
|
734 | 734 | |
|
735 | addClassAdvisor(_classProvides_advice, depth=2) | |
|
735 | advicemod.addClassAdvisor(_classProvides_advice, depth=2) | |
|
736 | 736 | |
|
737 | 737 | def _classProvides_advice(cls): |
|
738 | 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