Revert r34948: Apply versions-5785-2.patch

The commit added a test, test_dontAllowOtherObjects, which compares a
Version with a string object. It is however not reliable, as it compares
memory addresses, so revert the whole commit.

Reopens: #5785

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@34973 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge test_win32-5818: Make t.python.test/test_win32.py pass in Python 3

Author: vperic
Reviewer: antoine
Fixes: #5818

t.p.win32: Do not import exceptions module

The exceptions module has been removed in Python 3; exceptions are now
stored in builtins. However, the code can be simplified by trying to
assign a WindowsError and catching a NameError, which will work in all
Python versions and allows the removal of a helper function.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@34988 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge reactor-adopt-connection-5570-2

Author: therve
Reviewer: exarkun
Fixes: #5570

Add a new IReactorSocket.adoptStreamConnection method which allows registering
an established connection in the reactor.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@34989 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge test_fakepwd-5819: Make t.p.test.test_fakepwd pass under Python3

Author: vperic
Reviewer: antoine
Fixes: #5819

In two cases, the next() method of iterators was used; change this to
use the next() function to make the tests Python3 compatible.

Also use the opportunity to change the deprecated "assertEquals" syntax
to "assertEqual".

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35017 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge test_monkey-5816: Make t.test.test_monkey pass under Python 3

Author: vperic
Reviewer: itamar
Fixes: #5816

Update one raise statement to the more modern syntax to make the tests
pass under both Python 2 and 3.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35020 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge test_formmethod-5817: Make t.test.test_formmethod pass under Python3

Author: vperic
Reviewer: itamar
Fixes: #5817

Update the raise statements in twisted/python/formmethod.py to the new
syntax and add new tests to cover the two that weren't. Also fix a bug
in the formmethod.File object - the allowNone argument was being
overriden when calling the base class constructor.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35023 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge drop-25-support-5553-2: Remove support for Python 2.5

Author: vperic
Reviewer: thijs
Fixes: #5553

Python 2.5 is no longer supported, modify the appropriate setup files
and documentation.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35033 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge disttrial-1784-16

Authors: iratsu, exarkun, glyph, therve
Reviewers: exarkun, jml, glyph, thijs, jesstess, therve
Fixes: #1784

Add a -j option to trial allowing it to run the tests using multiple local processes.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35034 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Revert r35034: failures on the py-without-modules buildslave

Reopens: #1784


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35035 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge ipv6-tcp-client-endpoint-5695-3: An IPv6 TCP Client Endpoint

Author: ashfall
Reviewer: exarkun, glyph
Fixes: #5695

Added a new IPv6 stream endpoint, TCP6ClientEndpoint, in twisted.internet.endpoints, which accepts IPv6 host address literals as well as host names (which it resolves to an IPv6 address literal using socket.getaddrinfo).


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35046 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge illegal-search-4080

Author: danmil
Reviewer: exarkun
Fixes: #4080

Change `IMAP4Server` to handle errors from the search implementation and send back a proper
error response to the client when they occur.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35079 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Remove dependence on dictionary iteration order from an IMAP4 unit test.

Author: antoine
Reviewer: exarkun
Fixes: #5750



git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35084 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
he doesn't miss a beat

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35086 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge remove-unzip-5766: unzip, unzipIter, and countZipFileEntries in twisted.python.zipstream (deprecated in Twisted 11.0) are removed now.

Author: thijs
Reviewer: exarkun
Fixes: #5766


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@35095 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb