##// END OF EJS Templates
zope: force module import by importing symbols...
Gregory Szorc -
r37225:b9dd8403 default
parent child Browse files
Show More
@@ -640,12 +640,9 b' ClassProvidesBase = ClassProvidesBaseFal'
640
640
641 # Try to get C base:
641 # Try to get C base:
642 try:
642 try:
643 from . import _zope_interface_coptimizations
643 from ._zope_interface_coptimizations import ClassProvidesBase
644 except ImportError:
644 except ImportError:
645 pass
645 pass
646 else:
647 from ._zope_interface_coptimizations import ClassProvidesBase
648
649
646
650 class ClassProvides(Declaration, ClassProvidesBase):
647 class ClassProvides(Declaration, ClassProvidesBase):
651 """Special descriptor for class __provides__
648 """Special descriptor for class __provides__
@@ -917,15 +914,13 b' def _normalizeargs(sequence, output = No'
917 _empty = Declaration()
914 _empty = Declaration()
918
915
919 try:
916 try:
920 from . import _zope_interface_coptimizations
917 from ._zope_interface_coptimizations import (
918 getObjectSpecification,
919 implementedBy,
920 ObjectSpecificationDescriptor,
921 providedBy,
922 )
921 except ImportError:
923 except ImportError:
922 pass
924 pass
923 else:
924 from ._zope_interface_coptimizations import implementedBy
925 from ._zope_interface_coptimizations import providedBy
926 from ._zope_interface_coptimizations import (
927 getObjectSpecification)
928 from ._zope_interface_coptimizations import (
929 ObjectSpecificationDescriptor)
930
925
931 objectSpecificationDescriptor = ObjectSpecificationDescriptor()
926 objectSpecificationDescriptor = ObjectSpecificationDescriptor()
General Comments 0
You need to be logged in to leave comments. Login now