/usr/lib/python2.7/dist-packages/foolscap/api.py is in python-foolscap 0.13.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | # application code should import all names from here instead of from
# __init__.py . Use code like this:
#
# from foolscap.api import Tub
#
# This will make it easier to rearrange Foolscap's internals in the future.
# Anything you might import from outside foolscap.api is subject to movement
# in new releases.
from foolscap._version import get_versions
__version__ = str(get_versions()['version'])
del get_versions
# here is the primary entry point
from foolscap.pb import Tub
# names we import so that others can reach them as foolscap.api.foo
from foolscap.remoteinterface import RemoteInterface
from foolscap.referenceable import Referenceable, SturdyRef
from foolscap.copyable import Copyable, RemoteCopy, registerRemoteCopy
from foolscap.copyable import registerCopier, registerRemoteCopyFactory
from foolscap.ipb import DeadReferenceError, IConnectionHintHandler
from foolscap.tokens import BananaError
from foolscap.schema import StringConstraint, IntegerConstraint, \
ListOf, TupleOf, SetOf, DictOf, ChoiceOf, Any
from foolscap.storage import serialize, unserialize
from foolscap.tokens import Violation, RemoteException
from foolscap.eventual import eventually, fireEventually, flushEventualQueue
from foolscap.logging import app_versions
# hush pyflakes
_unused = [
__version__,
Tub,
RemoteInterface,
Referenceable, SturdyRef,
Copyable, RemoteCopy, registerRemoteCopy,
registerCopier, registerRemoteCopyFactory,
DeadReferenceError, IConnectionHintHandler,
BananaError,
StringConstraint, IntegerConstraint,
ListOf, TupleOf, SetOf, DictOf, ChoiceOf, Any,
serialize, unserialize,
Violation, RemoteException,
eventually, fireEventually, flushEventualQueue,
app_versions,
]
del _unused
|