Package foolscap
[hide private]
[frames] | no frames]

Source Code for Package foolscap

 1  """Foolscap""" 
 2   
 3  from _version import verstr as __version__ 
 4   
 5  # here are the primary entry points 
 6  from foolscap.pb import Tub, UnauthenticatedTub, getRemoteURL_TCP 
 7   
 8  # names we import so that others can reach them as foolscap.foo 
 9  from foolscap.remoteinterface import RemoteInterface 
10  from foolscap.referenceable import Referenceable, SturdyRef 
11  from foolscap.copyable import Copyable, RemoteCopy, registerRemoteCopy 
12  from foolscap.copyable import registerCopier, registerRemoteCopyFactory 
13  from foolscap.ipb import DeadReferenceError 
14  from foolscap.tokens import BananaError 
15  from foolscap import schema # necessary for the adapter_hooks side-effect 
16  from foolscap.storage import serialize, unserialize 
17  # TODO: Violation? 
18   
19  # hush pyflakes 
20  _unused = [ 
21      __version__, 
22      Tub, UnauthenticatedTub, getRemoteURL_TCP, 
23      RemoteInterface, 
24      Referenceable, SturdyRef, 
25      Copyable, RemoteCopy, registerRemoteCopy, 
26      registerCopier, registerRemoteCopyFactory, 
27      DeadReferenceError, 
28      BananaError, 
29      schema, 
30      serialize, unserialize, 
31      ] 
32  del _unused 
33