home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1835 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  1.3 KB  |  30 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __docformat__ = 'restructuredtext en'
  5. import sys
  6. from twisted.internet import reactor
  7. from IPython.kernel.clientconnector import ClientConnector
  8. from IPython.kernel.twistedutil import ReactorInThread
  9. from IPython.kernel.twistedutil import blockingCallFromThread
  10. from IPython.kernel import codeutil
  11. import IPython.kernel.magic as IPython
  12. from IPython.kernel.task import MapTask, StringTask
  13. from IPython.kernel.error import CompositeError
  14. _client_tub = ClientConnector()
  15.  
  16. def get_multiengine_client(furl_or_file = ''):
  17.     client = blockingCallFromThread(_client_tub.get_multiengine_client, furl_or_file)
  18.     return client.adapt_to_blocking_client()
  19.  
  20.  
  21. def get_task_client(furl_or_file = ''):
  22.     client = blockingCallFromThread(_client_tub.get_task_client, furl_or_file)
  23.     return client.adapt_to_blocking_client()
  24.  
  25. MultiEngineClient = get_multiengine_client
  26. TaskClient = get_task_client
  27. rit = ReactorInThread()
  28. rit.setDaemon(True)
  29. rit.start()
  30.