~certify-web-dev/twisted/certify-staging

« back to all changes in this revision

Viewing changes to twisted/internet/threads.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-01-02 19:38:17 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100102193817-jphp464ppwh7dulg
Tags: 9.0.0-1
* python-twisted: Depend on the python-twisted-* 9.0 packages.
* python-twisted: Depend on python-zope.interface only. Closes: #557781.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
    an exception.
65
65
    """
66
66
    from twisted.internet import reactor
67
 
    if reactor.threadpool is None:
68
 
        reactor._initThreadPool()
69
 
    return deferToThreadPool(reactor, reactor.threadpool,
 
67
    return deferToThreadPool(reactor, reactor.getThreadPool(),
70
68
                             f, *args, **kwargs)
71
69
 
72
70