| URL: http://twistedmatrix.com/trac/ |
| Sources: http://twistedmatrix.com/trac/wiki/Downloads |
| Version: 10.2.0 |
| License file: LICENSE |
| |
| This version of Twisted is part of the Chromium third_party library, |
| and has diverged slightly from the initial 10.2.0 release. Below are |
| the full diffs. |
| |
| ======= |
| |
| --- a/third_party/twisted_10_2/twisted/internet/process.py |
| +++ b/third_party/twisted_10_2/twisted/internet/process.py |
| @@ -890,22 +890,9 @@ class PTYProcess(abstract.FileDescriptor, _BaseProcess): |
| Setup child process after fork() but before exec(). |
| """ |
| os.close(masterfd) |
| - if hasattr(termios, 'TIOCNOTTY'): |
| - try: |
| - fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY) |
| - except OSError: |
| - pass |
| - else: |
| - try: |
| - fcntl.ioctl(fd, termios.TIOCNOTTY, '') |
| - except: |
| - pass |
| - os.close(fd) |
| - |
| os.setsid() |
| |
| - if hasattr(termios, 'TIOCSCTTY'): |
| - fcntl.ioctl(slavefd, termios.TIOCSCTTY, '') |
| + fcntl.ioctl(slavefd, termios.TIOCSCTTY, '') |
| |
| for fd in range(3): |
| if fd != slavefd: |
| |
| ======= |
| |
| diff --git a/third_party/twisted_10_2/twisted/web/server.py b/third_party/twisted_10_2/twisted/web/server.py |
| index 2e9eabf..edcb34c 100644 |
| --- a/third_party/twisted_10_2/twisted/web/server.py |
| +++ b/third_party/twisted_10_2/twisted/web/server.py |
| @@ -102,7 +102,7 @@ class Request(pb.Copyable, http.Request, components.Componentized): |
| return name |
| else: # lpp == 0 |
| if len(self.prepath) and self.prepath[-1]: |
| - return self.prepath[-1] + '/' + name |
| + return quote(self.prepath[-1], safe='') + '/' + name |
| else: |
| return name |
| |
| ======= |
| |
| diff --git a/third_party/twisted_10_2/twisted/spread/pb.py b/third_party/twisted_10_2/twisted/spread/pb.py |
| index 0ccee9e..6cd000c 100644 |
| --- a/third_party/twisted_10_2/twisted/spread/pb.py |
| +++ b/third_party/twisted_10_2/twisted/spread/pb.py |
| @@ -72,7 +72,9 @@ from twisted.spread.flavors import setFactoryForClass |
| from twisted.spread.flavors import setCopierForClassTree |
| |
| |
| -MAX_BROKER_REFS = 1024 |
| +# Chromium: We are starting to use more references. Up this count to |
| +# accommodate. |
| +MAX_BROKER_REFS = 8192 # (Originally 1024) |
| |
| portno = 8787 |
| |