~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to twisted/internet/win32eventreactor.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-17 14:52:35 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20070117145235-btmig6qfmqfen0om
Tags: 2.5.0-0ubuntu1
New upstream version, compatible with python2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
# Twisted imports
62
62
from twisted.internet import abstract, posixbase, main, error
63
 
from twisted.python import log, threadable, failure, components
 
63
from twisted.python import log, threadable, failure
64
64
from twisted.internet.interfaces import IReactorFDSet, IReactorProcess, IProcessTransport
65
65
 
66
66
from twisted.internet._dumbwin32proc import Process
198
198
 
199
199
    doIteration = doWaitForMultipleEvents
200
200
 
201
 
    def spawnProcess(self, processProtocol, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0):
 
201
    def spawnProcess(self, processProtocol, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0, childFDs=None):
202
202
        """Spawn a process."""
203
203
        if uid is not None:
204
204
            raise ValueError("Setting UID is unsupported on this platform.")
206
206
            raise ValueError("Setting GID is unsupported on this platform.")
207
207
        if usePTY:
208
208
            raise ValueError("PTYs are unsupported on this platform.")
 
209
        if childFDs is not None:
 
210
            raise ValueError(
 
211
                "Custom child file descriptor mappings are unsupported on "
 
212
                "this platform.")
 
213
        args, env = self._checkProcessArgs(args, env)
209
214
        return Process(self, processProtocol, executable, args, env, path)
210
215
 
211
216