1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 """
23 Flumotion Twisted compatibility assistance
24
25 All functions in this package are deprecated; do not use them. They no longer
26 provide any backwards compatibility.
27 """
28
29 import warnings
30
31 import zope.interface as zi
32
33 __version__ = "$Rev: 7307 $"
34
35
37 warnings.warn(
38 "This module is deprecated, use zope.interface directly instead",
39 DeprecationWarning, stacklevel=2)
40 return interface.providedBy(object)
41
42
44 warnings.warn(
45 "This module is deprecated, use zope.interface directly instead",
46 DeprecationWarning, stacklevel=2)
47 return zi.implementedBy(object)
48
49
51 warnings.warn(
52 "This module is deprecated, use zope.interface directly instead",
53 DeprecationWarning, stacklevel=2)
54 return isinstance(object, zi.InterfaceClass)
55
56 Interface = zi.Interface
57 implements = zi.implements
58